0
Answer

WaitOne with 0 as timeout value

Photo of George George

George George

17y
2.5k
1

Hello everyone,


1.

I have checked MSDN document,

http://msdn2.microsoft.com/en-us/library/kzy257t0(VS.80).aspx

it does not cover what is the function of WaitOne if we assign 0 as the timeout parameter.

I think the function of assigning 0 is to check whether the signal is set or not, and it will be returned immediately, right?

2.

If WaitOne (0, true) returns true, it means the signal is set or not set?


thanks in advance,
George