## Description

Include file: xesem.h

### Functions

#### XEventSemaphore

#### Parameters

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)

#### Remarks

open an event-semaphore which was created by another process
Create an event-semaphore

#### Exceptions

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

#### Remarks

close an event-semaphore

#### Exceptions

If the method fails an exception of the type XSemaphoreException is thrown

#### Post

#### Remarks

Post an event. All semaphores which have opened this semaphore and are waiting gets post means they are unlocked.

#### Exceptions

If the method fails an exception of the type XSemaphoreException is thrown

#### Reset

#### Return-Value

ULONG count of registered clients of the semaphore

#### Remarks

resets an event-semaphore

#### Exceptions

If the method fails an exception of the type XSemaphoreException is thrown

#### Wait

#### Parameters

LONG timeout | -1=wait endless 0 = return at once other=time to wait max. (in milliseconds)

#### Remarks

Wait for a semaphore until it post or until timeout.

#### Exceptions

If the method fails an exception of the type XSemaphoreException is thrown

This document was generated by Jens von Pilgrim's Autodoc