OpenBarnyard
Loading...
Searching...
No Matches
TMutex_Win.h
Go to the documentation of this file.
1
#pragma once
2
3
TOSHI_NAMESPACE_START
4
5
class
TMutex
6
{
7
public
:
8
enum
FLAG
9
{
10
FLAG_NONE
= 0,
11
FLAG_NO_WAIT
=
BITFLAG
( 0 ),
12
};
13
14
public
:
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
30
public
:
31
TMutex
&
operator=
(
const
TMutex
& mutex );
32
TMutex
&
operator=
(
void
* handle );
33
34
private
:
35
void
* m_Handle;
36
};
37
38
TOSHI_NAMESPACE_END
BITFLAG
#define BITFLAG(x)
Definition
Defines.h:10
TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_START
Definition
Defines.h:47
TOSHI_NAMESPACE_END
#define TOSHI_NAMESPACE_END
Definition
Defines.h:50
TBOOL
bool TBOOL
Definition
Typedefs.h:6
TMutex
Definition
TMutex_Win.h:6
TMutex::operator=
TMutex & operator=(const TMutex &mutex)
Definition
TMutex_Win.cpp:39
TMutex::Lock
TBOOL Lock(FLAG a_eFlags=FLAG_NONE)
Definition
TMutex_Win.cpp:58
TMutex::~TMutex
~TMutex()
Definition
TMutex_Win.cpp:18
TMutex::Create
TBOOL Create()
Definition
TMutex_Win.cpp:24
TMutex::Destroy
TBOOL Destroy()
Definition
TMutex_Win.cpp:31
TMutex::FLAG
FLAG
Definition
TMutex_Win.h:9
TMutex::FLAG_NO_WAIT
@ FLAG_NO_WAIT
Definition
TMutex_Win.h:11
TMutex::FLAG_NONE
@ FLAG_NONE
Definition
TMutex_Win.h:10
TMutex::TMutex
TMutex()
Definition
TMutex_Win.cpp:14
TMutex::Unlock
TBOOL Unlock()
Definition
TMutex_Win.cpp:52
D:
_dev
OpenBarnyard
Source
Toshi
Source
Platform
Windows
TMutex_Win.h
Generated by
1.13.2