Description |
XEventSemaphore |
char * name the name of the semaphore to open WITHOUT leading '\\SEM32\\'
char * name | the name of the semaphore to create WITHOUT leading '\\SEM32\\' |
BOOL shared | TRUE=shared semaphore FALSE=no shared semaphore |
BOOL isSet | TRUE=state is posted FALSE=state is not posted (default is FALSE) |
open an event-semaphore which was created by another process
Create an event-semaphore
If the method fails an exception of the type XSemaphoreException is thrown
If the method fails an exception of the type XSemaphoreException is thrown
Close |
close an event-semaphore
If the method fails an exception of the type XSemaphoreException is thrown
Post |
Post an event. All semaphores which have opened this semaphore and are waiting gets post means they are unlocked.
If the method fails an exception of the type XSemaphoreException is thrown
Reset |
ULONG count of registered clients of the semaphore
resets an event-semaphore
If the method fails an exception of the type XSemaphoreException is thrown
Wait |
LONG timeout | -1=wait endless 0 = return at once other=time to wait max. (in milliseconds) |
Wait for a semaphore until it post or until timeout.
If the method fails an exception of the type XSemaphoreException is thrown