diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:13:34 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:13:34 +0000 |
| commit | 733153a0fb52facba02c550ec849f0c734dfa412 (patch) | |
| tree | 8f249e8b8f6a7803a81bb0fed33213b9249b7ac1 /include/__threading_support | |
| parent | 2fa809d9eabddd820af54059faa8362dd50b51de (diff) | |
Notes
Diffstat (limited to 'include/__threading_support')
| -rw-r--r-- | include/__threading_support | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/__threading_support b/include/__threading_support index aa947139a4e9..080ebd256b8f 100644 --- a/include/__threading_support +++ b/include/__threading_support @@ -474,7 +474,10 @@ int __libcpp_condvar_timedwait(__libcpp_condvar_t *__cv, __libcpp_mutex_t *__m, timeout_ms.count() > 0 ? timeout_ms.count() : 0, 0)) - return GetLastError(); + { + auto __ec = GetLastError(); + return __ec == ERROR_TIMEOUT ? ETIMEDOUT : __ec; + } return 0; } |
