summaryrefslogtreecommitdiff
path: root/src/util/cnd_monotonic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/cnd_monotonic.h')
-rw-r--r--src/util/cnd_monotonic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/cnd_monotonic.h b/src/util/cnd_monotonic.h
index 983dfb8e55c..35a3d2b76de 100644
--- a/src/util/cnd_monotonic.h
+++ b/src/util/cnd_monotonic.h
@@ -119,11 +119,11 @@ u_cnd_monotonic_timedwait(struct u_cnd_monotonic *cond, mtx_t *mtx, const struct
const DWORD timeout = (future > now) ? (DWORD)(future - now) : 0;
if (SleepConditionVariableCS(&cond->condvar, mtx, timeout))
return thrd_success;
- return (GetLastError() == ERROR_TIMEOUT) ? thrd_busy : thrd_error;
+ return (GetLastError() == ERROR_TIMEOUT) ? thrd_timedout : thrd_error;
#else
int rt = pthread_cond_timedwait(&cond->cond, mtx, abs_time);
if (rt == ETIMEDOUT)
- return thrd_busy;
+ return thrd_timedout;
return (rt == 0) ? thrd_success : thrd_error;
#endif
}