2002-09-30 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (pthread_mutex::initMutex): Use the wrapper init call. (pthread_mutex::nativeMutex::init): Implement. (pthread_mutex::nativeMutex::lock): Ditto. (pthread_mutex::nativeMutex::unlock): Ditto. (pthread_mutex::init): Use the wrapper lock and unlockcalls. * thread.h (pthread_mutex): Move mutexInitializationLock into a nativeMutex wrapper class.
This commit is contained in:
@ -309,7 +309,15 @@ public:
|
||||
pthread_mutex (pthread_mutex_t *, pthread_mutexattr *);
|
||||
~pthread_mutex ();
|
||||
private:
|
||||
static HANDLE mutexInitializationLock;
|
||||
class nativeMutex {
|
||||
public:
|
||||
bool init();
|
||||
bool lock();
|
||||
void unlock();
|
||||
private:
|
||||
HANDLE theHandle;
|
||||
};
|
||||
static nativeMutex mutexInitializationLock;
|
||||
};
|
||||
|
||||
class pthread:public verifyable_object
|
||||
|
Reference in New Issue
Block a user