api changes
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
// 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:
|
||||
//
|
||||
@@ -10,8 +18,8 @@ public:
|
||||
// (since g++ does not have exceptions)
|
||||
//
|
||||
int init() {return 0;}
|
||||
void osiLock() {}
|
||||
void osiUnlock() {}
|
||||
void osiLock() const {}
|
||||
void osiUnlock() const {}
|
||||
void show (unsigned) const {}
|
||||
private:
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user