JVCL Help:TJvMTCountingSection.MaxCount
JVCL Help: TJvMTCountingSection.MaxCount Property
Search in JVCL Help
Search in all projectsSummary
The maximum count for the semaphore object.
Pascal
propertyMaxCount: Integer;
Description
The maximum number call's to Enter before the section starts blocking.
Set MaxCount to the maximum count for the semaphore object. This value must be greater than zero.
Typically you would set this value to the number of equivalent shared resources that this compontent should control.
For example, you have 3 printers that each can be accessed by 1 thread at time. Then you would set MaxCount to 3 and whenever a thread wants to access a printer you call Enter.
See Also
TJvMTCountingSection.InitCount
About
Notes
You can not change MaxCount after you called Enter or Leave.
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