Using Event Objects
Event kernel objects are used to allow a thread to block until another thread has completed a task. For example, one thread may be reading data from the Internet, and other threads can use an event to block until all the data has been read. Events can either be "manual-reset" or "auto-reset", and the type of event affects how threads blocking on the event behave.
Manual-Reset Events: When the event becomes signaled through a thread calling SetEvent, all threads blocking on the event will be unblocked. The event remains signaled until any thread calls ResetEvent at which point the event becomes non-signaled.
Auto-Reset Events: When the event becomes signaled through a thread calling SetEvent, only one thread blocking on the ...
Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.