get things to build again after Marty's osi => epics name changes

This commit is contained in:
Jeff Hill
2001-01-11 21:48:24 +00:00
parent 8c0600b372
commit 774f6dc27e
4 changed files with 13 additions and 8 deletions

View File

@@ -18,8 +18,9 @@
#define ipAddrToAsciiAsynchronous_h
#include "epicsMutex.h"
#include "osiSock.h"
#include "epicsEvent.h"
#include "tsDLList.h"
#include "osiSock.h"
#include "shareLib.h"
class ipAddrToAsciiAsynchronous;

View File

@@ -27,6 +27,8 @@ public:
class invalidSemaphore {}; /* exception */
class noMemory {}; /* exception */
private:
epicsEvent ( const osiEvent & );
epicsEvent & operator = ( const osiEvent & );
epicsEventId id;
};
#endif /*__cplusplus */
@@ -59,10 +61,10 @@ epicsShareFunc void epicsShareAPI epicsEventShow(
/*The c++ implementation consists of inline calls to the c code */
#ifdef __cplusplus
inline epicsEvent::epicsEvent (epicsEventInitialState initial)
inline epicsEvent::epicsEvent (epicsEventInitialState initial) :
id ( epicsEventCreate ( initial ) )
{
this->id = epicsEventCreate (initial);
if (this->id==0) {
if ( this->id == 0 ) {
throwWithLocation ( noMemory () );
}
}

View File

@@ -66,13 +66,15 @@ public:
epicsAutoMutex ( epicsMutex & );
~epicsAutoMutex ();
private:
epicsMutex ( const epicsMutex & );
epicsMutex & operator = ( const epicsMutex & );
epicsMutex &mutex;
};
inline epicsMutex::epicsMutex ()
id ( epicsMutexCreate () )
{
this->id = epicsMutexCreate ();
if (this->id==0) {
if ( this->id == 0 ) {
throwWithLocation ( noMemory () );
}
}

View File

@@ -39,7 +39,7 @@
#include "osiTime.h"
#include "tsDLList.h"
#include "osiMutex.h"
#include "epicsMutex.h"
#include "epicsEvent.h"
class osiTimerQueue;
@@ -189,7 +189,7 @@ public:
epicsShareFunc void process ();
epicsShareFunc void show (unsigned level) const;
private:
osiMutex mutex;
epicsMutex mutex;
epicsEvent rescheduleEvent;
epicsEvent exitEvent;
tsDLList <osiTimer> timerLists [osiTimer::numberOfTimerLists];