mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
add WAIT_ABANDONED
This commit is contained in:
parent
6f5c594dcf
commit
dc3ef4d4b9
@ -40,6 +40,10 @@ public:
|
|||||||
if ((ret = ::WaitForSingleObject(h_, ms)) == WAIT_OBJECT_0) {
|
if ((ret = ::WaitForSingleObject(h_, ms)) == WAIT_OBJECT_0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (ret == WAIT_ABANDONED) {
|
||||||
|
ipc::log("WaitForSingleObject ret: WAIT_ABANDONED\n");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (ret == WAIT_TIMEOUT) {
|
if (ret == WAIT_TIMEOUT) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user