Semaphore Class Reference

#include <private_ge_semaphore.h>

Public Member Functions

 Semaphore ()
 
 ~Semaphore ()
 
Bool AttemptLock (Int32 line=0, const Char *file="")
 
Bool Lock (BaseThread *bt, Int32 line=0, const Char *file="")
 
Int32 UnLock ()
 
void CheckLockCount ()
 
Int32 IsLockedByMe ()
 

Private Member Functions

void ErrorAlert ()
 

Private Attributes

GeRWSpinlock lock
 
Int32 cnt
 
UInt32 id
 

Constructor & Destructor Documentation

◆ Semaphore()

Semaphore ( )

◆ ~Semaphore()

~Semaphore ( )

Member Function Documentation

◆ ErrorAlert()

void ErrorAlert ( )
private

◆ AttemptLock()

Bool AttemptLock ( Int32  line = 0,
const Char file = "" 
)

◆ Lock()

Bool Lock ( BaseThread bt,
Int32  line = 0,
const Char file = "" 
)

◆ UnLock()

Int32 UnLock ( )

◆ CheckLockCount()

void CheckLockCount ( )

◆ IsLockedByMe()

Int32 IsLockedByMe ( )

Member Data Documentation

◆ lock

GeRWSpinlock lock
private

◆ cnt

Int32 cnt
private

◆ id

UInt32 id
private