CStdShareLock Class Reference

#include <StdSync.h>

Collaboration diagram for CStdShareLock:

Public Member Functions

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

Protected Attributes


Detailed Description

Definition at line 266 of file StdSync.h.

Constructor & Destructor Documentation

◆ CStdShareLock()

CStdShareLock::CStdShareLock ( CStdCSecEx pSec)

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::~CStdShareLock ( )

Definition at line 271 of file StdSync.h.

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

Member Function Documentation

◆ Clear()

void CStdShareLock::Clear ( )

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

◆ sec

CStdCSecEx* CStdShareLock::sec

Definition at line 275 of file StdSync.h.

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