SetEvent?
-
Does the SetEvent function queue events? For example, if I signal the event 10 times in a row, will a waiting thread wakeup from a waitforsingleobject 10 times? The event is setup as automatic. Thanks in Advance...
No the thread will wakeup in the first time itself. the significance of a singal is in waiting state only. Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
Does the SetEvent function queue events? For example, if I signal the event 10 times in a row, will a waiting thread wakeup from a waitforsingleobject 10 times? The event is setup as automatic. Thanks in Advance...
No, SetEvent just sets the event to the signalled state, so the number of times you call SetEvent doesn't matter. Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
Does the SetEvent function queue events? For example, if I signal the event 10 times in a row, will a waiting thread wakeup from a waitforsingleobject 10 times? The event is setup as automatic. Thanks in Advance...