OpenClonk
CStdLock Class Reference

#include <StdSync.h>

Collaboration diagram for CStdLock:
[legend]

Public Member Functions

 CStdLock (CStdCSec *pSec)
 
 ~CStdLock ()
 
void Clear ()
 

Protected Attributes

CStdCSecsec
 

Detailed Description

Definition at line 166 of file StdSync.h.

Constructor & Destructor Documentation

◆ CStdLock()

CStdLock::CStdLock ( CStdCSec pSec)
inline

Definition at line 169 of file StdSync.h.

169  : sec(pSec)
170  { sec->Enter(); }
virtual void Enter()
Definition: StdSync.h:150
CStdCSec * sec
Definition: StdSync.h:175

References CStdCSec::Enter(), and sec.

Here is the call graph for this function:

◆ ~CStdLock()

CStdLock::~CStdLock ( )
inline

Definition at line 171 of file StdSync.h.

172  { Clear(); }
void Clear()
Definition: StdSync.h:178

References Clear().

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void CStdLock::Clear ( )
inline

Definition at line 178 of file StdSync.h.

179  { if (sec) sec->Leave(); sec = nullptr; }
virtual void Leave()
Definition: StdSync.h:151

References CStdCSec::Leave(), and sec.

Referenced by C4NetIOTCP::Accept(), C4Network2IO::Clear(), C4NetIOUDP::ConnectPeer(), C4Network2IO::GenerateStatistics(), C4Network2IO::HandleFwdReq(), C4NetIOUDP::Peer::OnRecv(), C4InteractiveThread::PushEvent(), C4Network2IO::SendConnPackets(), and ~CStdLock().

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

Member Data Documentation

◆ sec

CStdCSec* CStdLock::sec
protected

Definition at line 175 of file StdSync.h.

Referenced by Clear(), and CStdLock().


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