System.SyncObjs.TMutex

From RAD Studio API Documentation
Jump to: navigation, search

System.SyncObjs.THandleObjectSystem.SyncObjs.TSynchroObjectSystem.TObjectTMutex

Delphi

TMutex = class(THandleObject)

C++

class PASCALIMPLEMENTATION TMutex : public THandleObject

Properties

Type Visibility Source Unit Parent
class public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs System.SyncObjs

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

Code Examples