JCL Help:TJclCriticalSection.Leave

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Releases ownership of the critical section.


Pascal

 public procedure Leave;


Description

The Release method releases ownership of the critical section previously acquired by a call to the Enter method. After a call to Release the critical section is free to be acquired by a different thread. If you called Enter multiple times the critical section will not be released until the last, balancing call to Release.


See Also

Enter


About

Donator

Marcel van Brakel


Notes

If you call Release while you don't currently own the critical section, the state of the critical section object becomes corrupted and threads waiting for ownership may be blocked forever.


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