Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
CritSec Class Reference

#include <critsec.h>

Public Member Functions

 CritSec ()
 
 ~CritSec ()
 
sint32 lock (int *refcount=NULL) RO
 
sint32 unlock (void) RO
 
 CritSec ()
 
 ~CritSec ()
 
sint32 lock (int *refcount=NULL) RO
 
sint32 unlock (void) RO
 

Protected Attributes

pthread_mutex_t Mutex_
 
pthread_t ThreadId_
 
int RefCount_
 

Detailed Description

Definition at line 43 of file critsec.h.

Constructor & Destructor Documentation

◆ CritSec() [1/2]

CritSec::CritSec ( )

Definition at line 25 of file critsec.cpp.

◆ ~CritSec() [1/2]

CritSec::~CritSec ( )

Definition at line 35 of file critsec.cpp.

◆ CritSec() [2/2]

CritSec::CritSec ( )

◆ ~CritSec() [2/2]

CritSec::~CritSec ( )

Member Function Documentation

◆ lock() [1/2]

sint32 CritSec::lock ( int * refcount = NULL)

Definition at line 52 of file critsec.cpp.

◆ lock() [2/2]

sint32 CritSec::lock ( int * refcount = NULL)

◆ unlock() [1/2]

sint32 CritSec::unlock ( void )

Definition at line 96 of file critsec.cpp.

◆ unlock() [2/2]

sint32 CritSec::unlock ( void )

Member Data Documentation

◆ Mutex_

pthread_mutex_t CritSec::Mutex_
mutableprotected

Definition at line 56 of file critsec.h.

◆ RefCount_

int CritSec::RefCount_
mutableprotected

Definition at line 58 of file critsec.h.

◆ ThreadId_

pthread_t CritSec::ThreadId_
mutableprotected

Definition at line 57 of file critsec.h.


The documentation for this class was generated from the following files: