repo.or.cz
/
client-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
dsrc isn't necessary for this repo
[client-tools.git]
/
src
/
external
/
3rd
/
library
/
soePlatform
/
CSAssist
/
utils
/
Base
/
solaris
/
Mutex.cpp
blob
a3718b383c0a05d0ae5a1d7f4e87df2487355916
1
////////////////////////////////////////
2
// Mutex.cpp
3
//
4
// Purpose:
5
// 1. Implementation of the CMutex class.
6
//
7
// Revisions:
8
// 07/10/2001 Created
9
//
10
11
#if defined(_REENTRANT)
12
13
14
#include
"Mutex.h"
15
16
namespace
Base
17
{
18
19
CMutex
::
CMutex
()
20
{
21
mInitialized
= (
pthread_mutex_init
(&
mMutex
,
0
) ==
0
);
22
}
23
24
CMutex
::~
CMutex
()
25
{
26
if
(
mInitialized
)
27
pthread_mutex_destroy
(&
mMutex
);
28
}
29
30
}
31
32
#endif
// #if defined(_REENTRANT)