WiFi Framework C++ Edition
CwclCriticalSection Class Reference

The class represents a creitical section synchronization primitive. More...

#include <wclSync.h>

Inheritance diagram for CwclCriticalSection:
CwclSyncObject

Public Member Functions

 CwclCriticalSection ()
 Creates and initializes a critical section object.
 
virtual ~CwclCriticalSection ()
 Destroys the critical section object and releases all allocated resources.
 
void Enter ()
 Waits for ownership of the critical section object.
 
void Leave ()
 Releases ownership of the critical section object.
 
- Public Member Functions inherited from CwclSyncObject
virtual ~CwclSyncObject ()
 Frees the synchronization object.
 

Additional Inherited Members

- Protected Member Functions inherited from CwclSyncObject
 CwclSyncObject ()
 Creates new synchronization object.
 

Detailed Description

The class represents a creitical section synchronization primitive.

A critical section object provides synchronization similar to that provided by a mutex object, except that a critical section can be used only by the threads of a single process. Critical section objects cannot be shared across processes.

See also
CwclSyncObject