CBL_EVENT_WAIT

Waits for the event to be posted.

Syntax:
call "CBL_EVENT_WAIT" using by value event-handle
                      by value       nowait-flag
Parameters:
Using call prototype (see Library Routines - Key) Picture (32-bit systems)
event-handle cblt-pointer usage pointer.
nowait-flag cblt-os-flags pic x(4) comp-5
On Entry:
event-handle The event handle.
nowait-flag A 32-bit number that specifies the action to take if the event has not been posted:
Bit Meaning
0
0 The thread blocks until the event is posted, and then returns.
1 The call returns immediately with an error value
1-31 Reserved. Must be set to zero.
On Exit:
return-code A value of 0 indicates that the call was successful. Any other value indicates an error. See RETURN-CODE Values For Synchronization Routines
Comments:

If the event is already posted, the call returns immediately.

Behavior is undefined if event-handle is invalid.

See Also: