OpenBarnyard
 
Loading...
Searching...
No Matches
TMutex_Win.h
Go to the documentation of this file.
1#pragma once
2
4
5class TMutex
6{
7public:
8 enum FLAG
9 {
12 };
13
14public:
15 TMutex();
16 ~TMutex();
17
18 // Returns TTRUE if success
19 TBOOL Create();
20
21 // Returns TTRUE if success
22 TBOOL Destroy();
23
24 // Returns TTRUE if the state is signaled
25 TBOOL Lock( FLAG a_eFlags = FLAG_NONE );
26
27 // Returns TTRUE if success
28 TBOOL Unlock();
29
30public:
31 TMutex& operator=( const TMutex& mutex );
32 TMutex& operator=( void* handle );
33
34private:
35 void* m_Handle;
36};
37
#define BITFLAG(x)
Definition Defines.h:10
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
bool TBOOL
Definition Typedefs.h:6
TMutex & operator=(const TMutex &mutex)
TBOOL Lock(FLAG a_eFlags=FLAG_NONE)
TBOOL Create()
TBOOL Destroy()
@ FLAG_NO_WAIT
Definition TMutex_Win.h:11
@ FLAG_NONE
Definition TMutex_Win.h:10
TBOOL Unlock()