JCL Help:TJclCriticalSectionEx.TryEnter

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Attempts to Enter the critical section.


Pascal

 public function TryEnter: Boolean;


Return Value

If ownership of the critical section object is acquired the function returns True. If ownership could not be acquired because the critical section 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 critical section object. However, unlike the Enter method, this method immediately returns if the critical section cannot be acquired. Note this method is not supported on Windows 98.


About

Donator

Marcel van Brakel


Contributors

Anonymous


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