OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
CStdShareLock Class Reference

#include <StdSync.h>

Collaboration diagram for CStdShareLock:
[legend]

Public Member Functions

 CStdShareLock (CStdCSecEx *pSec)
 
 ~CStdShareLock ()
 
void Clear ()
 

Protected Attributes

CStdCSecExsec
 

Detailed Description

Definition at line 266 of file StdSync.h.

Constructor & Destructor Documentation

CStdShareLock::CStdShareLock ( CStdCSecEx pSec)
inline

Definition at line 269 of file StdSync.h.

269  : sec(pSec)
270  { sec->EnterShared(); }
CStdCSecEx * sec
Definition: StdSync.h:275
void EnterShared()
Definition: StdSync.h:238
CStdShareLock::~CStdShareLock ( )
inline

Definition at line 271 of file StdSync.h.

272  { Clear(); }
void Clear()
Definition: StdSync.h:278

Member Function Documentation

void CStdShareLock::Clear ( )
inline

Definition at line 278 of file StdSync.h.

References CStdCSecEx::LeaveShared().

Referenced by C4NetIOUDP::Close(), and C4Network2ResList::SendDiscover().

279  { if (sec) sec->LeaveShared(); sec = nullptr; }
CStdCSecEx * sec
Definition: StdSync.h:275
void LeaveShared()
Definition: StdSync.h:248

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CStdCSecEx* CStdShareLock::sec
protected

Definition at line 275 of file StdSync.h.


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