Files
pcas/src/include/osiMutexNOOP.h
1997-04-10 20:01:14 +00:00

27 lines
648 B
C++

//
// osiMutex - OS independent mutex
// (NOOP on single threaded OS)
//
// NOTE:
// I have made lock/unlock const because this allows
// a list to be run in a const member function on a
// multi-threaded os (since paired lock/unlock
// requests really do not modify the internal
// state of the object and neither does
// running the list if we dont modify the list).
//
class osiMutex {
public:
//
// constructor that returns status
// (since g++ does not have exceptions)
//
int init() {return 0;}
void osiLock() const {}
void osiUnlock() const {}
void show (unsigned) const {}
private:
};