JVCL Help:TJvMTMonitorSection.Condition

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Write here a summary (1 line)


Pascal

 propertyCondition [ID: Integer]: TMTCondition;


Parameters

Parameters Description
ID Description for this parameter


Description

Returns a condition associated with the specified ID. If the condition does not exist yet, it will automatically be created.


Examples

const
mcThereIsFire = 1

//thread1:
Monitor.Enter;
try
Monitor.Condition[mcThereIsFire].Wait;
PutOutFire;
finally
Monitor.Leave;
end;

//thread2:
Monitor.Enter;
try
MakeSomeFire;
Monitor.Condition[mcThereIsFire].Signal;
finally
Monitor.Leave;
end;


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page