OpenClonk
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::CStdShareLock ( CStdCSecEx pSec)
inline

Definition at line 269 of file StdSync.h.

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

References CStdCSecEx::EnterShared(), and sec.

Here is the call graph for this function:

◆ ~CStdShareLock()

CStdShareLock::~CStdShareLock ( )
inline

Definition at line 271 of file StdSync.h.

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

References Clear().

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void CStdShareLock::Clear ( )
inline

Definition at line 278 of file StdSync.h.

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

References CStdCSecEx::LeaveShared(), and sec.

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

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ sec

CStdCSecEx* CStdShareLock::sec
protected

Definition at line 275 of file StdSync.h.

Referenced by Clear(), and CStdShareLock().


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