All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 267 of file StdSync.h.

Constructor & Destructor Documentation

CStdShareLock::CStdShareLock ( CStdCSecEx pSec)

Definition at line 270 of file StdSync.h.

270  : sec(pSec)
271  { sec->EnterShared(); }
CStdCSecEx * sec
Definition: StdSync.h:276
void EnterShared()
Definition: StdSync.h:239
CStdShareLock::~CStdShareLock ( )

Definition at line 272 of file StdSync.h.

273  { Clear(); }
void Clear()
Definition: StdSync.h:279

Member Function Documentation

void CStdShareLock::Clear ( )

Definition at line 279 of file StdSync.h.

References CStdCSecEx::LeaveShared().

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

280  { if (sec) sec->LeaveShared(); sec = nullptr; }
CStdCSecEx * sec
Definition: StdSync.h:276
void LeaveShared()
Definition: StdSync.h:249

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CStdCSecEx* CStdShareLock::sec

Definition at line 276 of file StdSync.h.

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