当前位置:网站首页>Return value of WaitForSingleObject

Return value of WaitForSingleObject

2022-06-12 13:30:00 Boring ah le

WaitForSingleObject  The return value of has the following three cases :
WAIT_OBJECT_0: The object you are waiting for ( Like threads 、 mutex ) The normal execution of has been completed or released .
WAIT_TIMEOUT: Indicates that the object you are waiting for is not finished yet , from  WaitForSingleObject  The set time has timed out .
WAIT_ABANDONED: This is when the waiting object is a mutex , When the mutex object is not released by the thread that occupies it , But when the thread that occupies it has been terminated prematurely ,WaitForSingleObject  This value is returned .
原网站

版权声明
本文为[Boring ah le]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010516317171.html