SyncObjs.TMutex

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From SyncObjs.pas

TMutex = class(THandleObject)


Unit: SyncObjs

Type: class

Inherited Class Members: SyncObjs.TMutex Members

Class Constructors & Destructors: SyncObjs.TMutex Constructors

C++ Information

From SyncObjs.hpp

TMutex = class(THandleObject)


Unit: SyncObjs

Type: class

Inherited Class Members: SyncObjs.TMutex Members

Class Constructors & Destructors: SyncObjs.TMutex Constructors

Description

TMutex is a synchronization primitive used to guard a shared resource.


Use TMutex to synchronize two or more threads and allow them to safely access a shared resource. A mutex creates a queue of threads that are waiting on a resource and allows only one thread to access that resource at any given moment.

A mutex is basically equivalent to a binary semaphore.

See Also

Personal tools
Translations
Newest Version