System.SyncObjs.TSynchroObject
Delphi
TSynchroObject = class(TObject)
C++
class PASCALIMPLEMENTATION TSynchroObject : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | System.SyncObjs |
Description
TSynchroObject is the base class for all thread synchronization objects.
Use TSynchroObject as a base class when defining an object that coordinates the execution of different threads in a multi-threaded application. Synchronization objects include critical sections that temporarily block the execution of other threads, which may interfere with the successful completion of a section of code, and event objects that allow threads to signal when critical events have occurred.
Code Examples
See the polymorphic call of TSynchroObject.Acquire in the following examples: