From 2af167bec3457f4de88847ba92d06b5c8b4d3b4e Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 7 Jan 2019 00:27:37 +0100 Subject: [PATCH] waitable: Do not return Failure when timing out. --- source/windows/waitable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/windows/waitable.cpp b/source/windows/waitable.cpp index 9f359ba..a1e89e6 100644 --- a/source/windows/waitable.cpp +++ b/source/windows/waitable.cpp @@ -56,7 +56,7 @@ datapath::error datapath::waitable::wait(datapath::waitable* obj, std::chrono::n } } while (timeout > 0); - return datapath::error::Failure; + return datapath::error::TimedOut; } datapath::error datapath::waitable::wait(datapath::waitable** objs, size_t count, std::chrono::nanoseconds duration) @@ -108,7 +108,7 @@ datapath::error datapath::waitable::wait(datapath::waitable** objs, size_t count } } while (timeout > 0); - return datapath::error::Failure; + return datapath::error::TimedOut; } datapath::error datapath::waitable::wait_any(datapath::waitable** objs, size_t count, size_t& index, @@ -159,5 +159,5 @@ datapath::error datapath::waitable::wait_any(datapath::waitable** objs, size_t c } } while (timeout > 0); - return datapath::error::Failure; + return datapath::error::TimedOut; }