Win32 Event vs Semaphore

Posted by JP on Stack Overflow See other posts from Stack Overflow or by JP
Published on 2010-05-11T13:04:54Z Indexed on 2010/05/11 13:14 UTC
Read the original article Hit count: 831

Filed under:
|
|
|
|

Basically I need a replacement for Condition Variable and SleepConditionVariableCS because it only support Vista and UP. (For C++)

Some suggested to use Semaphore, I also found CreateEvent.

Basically, I need to have on thread waiting on WaitForSingleObject, until something one or more others thread tell me there is something to do.

In which context should I use a Semaphore vs an Win Event?

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about win32