OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 ( CStdCSec pSec)
inline

Definition at line 169 of file StdSync.h.

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

Definition at line 171 of file StdSync.h.

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

Member Function Documentation

void CStdLock::Clear ( )
inline

Definition at line 178 of file StdSync.h.

References CStdCSec::Leave().

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CStdCSec* CStdLock::sec
protected

Definition at line 175 of file StdSync.h.


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