Is there a semaphone that works like a Chess timer, meaning;
Thread A completes its task, loops back up to the top and calls the Semaphore
This triggers Thread 2 which proceeds through its code, loops back up to the top and calls the Semaphore
This triggers Thread A which...
So the Semaphore is both blocking and signaling.
I know I can just use two events and WaitForSingleObject, but I wondered if there is a semaphore that does this specifically?
While on the subject, how "expensive" is an Event, and how "expensive" is WaitForSingleObject() in terms of memory and CPU?