Description | Hierarchy | Fields | Methods | Properties |
type unaEvent = class(unaObject)
This is a wrapper class for Windows Events.
constructor create(manualReset: bool = false; initialState: bool = false; const name: wString = ''); |
|
destructor Destroy(); override; |
|
function waitFor(timeout: tTimeout = 1): bool; |
|
procedure setState(signaled: bool = true); |
property handle: tHandle read f_handle; |
|
property name: wString read f_name; |
constructor create(manualReset: bool = false; initialState: bool = false; const name: wString = ''); |
|
Constructs an event. Specify initialState and manualReset parameters. Refer to MSDN documentation for more details about Windows events.
Parameters
|
destructor Destroy(); override; |
|
Destroys an event object by closing its handle. |
function waitFor(timeout: tTimeout = 1): bool; |
|
Used to wait until the state of event will be set to signaled. This method blocks execution of the caller thread, so use it carefully when specifying INFINITE value for timeout.
Parameters
ReturnsTrue if the event is now signaled or False if timeout was expired (event remains in non-signaled state). |
procedure setState(signaled: bool = true); |
|
Sets the state of an event to signaled or non-signaled. |
property handle: tHandle read f_handle; |
|
Windows handle of event. |
property name: wString read f_name; |
|
Event's name (if specified). |
(c) 2012 Lake of Soft