JCL Help:TJclOptex.TryEnter
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: TJclOptex.TryEnter Method
Search in JCL Help
Search in all projects
Summary
Attempts to Enter the critical section.
Pascal
public function TryEnter: Boolean;
Return Value
If ownership of the optex object is acquired the function returns True. If ownership could not be acquired because the optex was already owned by a different thread the function returns False. In this latter case you must take care not to call Release.
Description
TryEnter attempts to acquire ownership of the optex object. However, unlike the Enter method, this method immediately returns if the optex cannot be acquired the first time around.
About
Donator
Marcel van Brakel
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