JCL Help:TJclDispatcherObject.WaitForever

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Blocks until the object becomes signaled.


Pascal

 public function WaitForever: TJclWaitResult;


Return Value

The result indicates success or failure and is of type TJclWaitResult. This type is shared between all WaitXxx functions and as such not all members of this enumeration can be returned from this method. Valid ones are wrError, wrAbandoned, wrTimeOut and wrSignaled. See TJclWaitResult for the details.


Description

WaitForever checks the state of the object, if it is non-signaled the calling thread enters a wait state until the object becomes signaled. If the object is signaled, or becomes signaled, the function returns and the thread is allowed to continue execution. Note that successfully waiting on a dispatcher object can, depending on the object, modify the state of the underlying object. For example, the count of a semaphore is decreased by one before the method returns. See the individual synchronization classes and the Platform SDK for details.


See Also

WaitAlertable WaitFor WaitForMultipleObjects WaitAlertableForMultipleObjects


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