EvEmu
0.8.4
11 September 2021
|
#include "Mutex.h"
Public Member Functions | |
MRMutex () | |
~MRMutex () | |
void | ReadLock () |
bool | TryReadLock () |
void | UnReadLock () |
void | WriteLock () |
bool | TryWriteLock () |
void | UnWriteLock () |
int32 | ReadLockCount () |
int32 | WriteLockCount () |
Private Attributes | |
int32 | rl |
int32 | wr |
int32 | wl |
Mutex | MCounters |
void MRMutex::ReadLock | ( | ) |
Definition at line 101 of file Mutex.cpp.
References Sleep(), and TryReadLock().
int32 MRMutex::ReadLockCount | ( | ) |
Definition at line 178 of file Mutex.cpp.
References Mutex::Lock(), MCounters, rl, and Mutex::Unlock().
bool MRMutex::TryReadLock | ( | ) |
Definition at line 107 of file Mutex.cpp.
References Mutex::Lock(), MCounters, rl, Mutex::Unlock(), wl, and wr.
Referenced by ReadLock().
bool MRMutex::TryWriteLock | ( | ) |
Definition at line 154 of file Mutex.cpp.
References Mutex::Lock(), MCounters, rl, Mutex::Unlock(), and wl.
void MRMutex::UnReadLock | ( | ) |
Definition at line 120 of file Mutex.cpp.
References Mutex::Lock(), MCounters, rl, and Mutex::Unlock().
void MRMutex::UnWriteLock | ( | ) |
Definition at line 167 of file Mutex.cpp.
References Mutex::Lock(), MCounters, Mutex::Unlock(), and wl.
void MRMutex::WriteLock | ( | ) |
Definition at line 131 of file Mutex.cpp.
References Mutex::Lock(), MCounters, rl, Sleep(), Mutex::Unlock(), wl, and wr.
int32 MRMutex::WriteLockCount | ( | ) |
Definition at line 185 of file Mutex.cpp.
References Mutex::Lock(), MCounters, Mutex::Unlock(), and wl.
|
private |
Definition at line 101 of file Mutex.h.
Referenced by ReadLockCount(), TryReadLock(), TryWriteLock(), UnReadLock(), UnWriteLock(), WriteLock(), and WriteLockCount().
|
private |
Definition at line 98 of file Mutex.h.
Referenced by MRMutex(), ReadLockCount(), TryReadLock(), TryWriteLock(), UnReadLock(), WriteLock(), and ~MRMutex().
|
private |
Definition at line 100 of file Mutex.h.
Referenced by MRMutex(), TryReadLock(), TryWriteLock(), UnWriteLock(), WriteLock(), WriteLockCount(), and ~MRMutex().
|
private |
Definition at line 99 of file Mutex.h.
Referenced by MRMutex(), TryReadLock(), and WriteLock().