Deallocates the data structures used to create an event object.
int CloseEvent (EVENT e);
Required Header |
<process.h> |
Return Value
Non zero signifies a successful close.
Parameters
e
The EVENT object to close
Remarks
The CloseEvent function deallocates the data used in creating an EVENT object.
The CloseEvent function will release all threads waiting on the EVENT as long as it is not waiting on ALL events in a Wait-Multiple function call. The process will deadlock if you try to close an EVENT object while another thread is waiting on multiple EVENTs, including the one being closed, where the one being closed is not the only EVENT non-signalled in the wait.See Also _beginthread, _endthread, _syncthread, CreateEvent, ResetEvent, SetEvent, EventStatus, WaitForSingleEvent, WaitForMultipleEvents