Changes for HP-UX 11 - first semi-stable version

This commit is contained in:
Ralph Lange
2002-02-04 15:14:43 +00:00
parent 9ad5b74cca
commit 96d928fa51
9 changed files with 31 additions and 25 deletions
-2
View File
@@ -4,8 +4,6 @@ include $(TOP)/configure/CONFIG
PROD_LIBS += Com
USR_LIBS_hpux += cma
#epicsListTest_SRCS += epicsListTest.cpp
PROD_HOST += epicsListTest
#epicsListTest build fails for vxWorks-ppc604 on win32-x86 host
+6 -3
View File
@@ -5,7 +5,10 @@
// Test code for the epics::List class
#include "epicsList.h"
#include <iostream.h>
#include <iostream>
using std::cout;
using std::endl;
#ifdef vxWorks
#define MAIN epicsListTest
@@ -41,10 +44,10 @@ int MAIN(int /*argc*/, char* /*argv[]*/) {
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J"
};
int i;
for (i=0; i<10; i++)
apf[i] = new fred(names[i]);
epicsList<fred*> Fred;
test(Fred.empty());
test(Fred.size() == 0);
+5 -3
View File
@@ -2,7 +2,7 @@
/*
* Author: Marty Kraimer Date: 26JAN2000
* Jeff HIll (added mutex performance test )
* Jeff Hill (added mutex performance test )
*/
/********************COPYRIGHT NOTIFICATION**********************************
@@ -135,7 +135,7 @@ void verifyTryLock ()
epicsThreadCreate ( "verifyTryLockThread", 40,
epicsThreadGetStackSize(epicsThreadStackSmall),
(EPICSTHREADFUNC )verifyTryLockThread, &verify );
verifyTryLockThread, &verify );
epicsEventWait ( verify.done );
@@ -196,7 +196,9 @@ extern "C" void epicsMutexTest(int nthreads,int verbose)
pinfo[i]->threadnum = i;
pinfo[i]->mutex = mutex;
arg[i] = pinfo[i];
id[i] = epicsThreadCreate(name[i],40,stackSize,(EPICSTHREADFUNC)mutexThread,arg[i]);
id[i] = epicsThreadCreate(name[i],40,stackSize,
mutexThread,
arg[i]);
printf("semTest created mutexThread %d id %p time %ld\n",
i, id[i],time(&tp));
}