dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / library / soePlatform / CSAssist / utils / Base / solaris / Mutex.cpp
bloba3718b383c0a05d0ae5a1d7f4e87df2487355916
1 ////////////////////////////////////////
2 // Mutex.cpp
3 //
4 // Purpose:
5 // 1. Implementation of the CMutex class.
6 //
7 // Revisions:
8 // 07/10/2001 Created
9 //
11 #if defined(_REENTRANT)
14 #include "Mutex.h"
16 namespace Base
19 CMutex::CMutex()
21 mInitialized = (pthread_mutex_init(&mMutex, 0) == 0);
24 CMutex::~CMutex()
26 if (mInitialized)
27 pthread_mutex_destroy(&mMutex);
32 #endif // #if defined(_REENTRANT)