TwclCriticalSection Class

The class represents a creitical section synchronization primitive.

Namespace: wclSync
TObject
  wclSync.TwclSyncObject
    wclSync.TwclCriticalSection
type
 TwclCriticalSection = class(TwclSyncObject)
 end;

The TwclCriticalSection type exposes the following members.

Show:
 NameDescription
Create

Creates and initializes a critical section object. (Overrides TwclSyncObject.Create.)

Destroy

Destroys the critical section object and releases all allocated resources.

Top
Show:
 NameDescription
Enter

Waits for ownership of the critical section object.

Leave

Releases ownership of the critical section object.

Top

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.