From f0f3f094c5fa05bafe1963d1ea13f1be39a6673b Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 17 May 2020 11:17:28 -0400 Subject: add upstream 10.24 --- zen/thread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'zen/thread.h') diff --git a/zen/thread.h b/zen/thread.h index a1d5197c..99e61e1f 100644 --- a/zen/thread.h +++ b/zen/thread.h @@ -18,9 +18,6 @@ namespace zen { class InterruptionStatus; -#if __cpp_lib_jthread - #error refactor! -#endif class InterruptibleThread { public: @@ -92,7 +89,7 @@ template inline bool isReady(const std::future& f) { return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready; } //------------------------------------------------------------------------------------------ -//wait until first job is successful or all failed: substitute until std::when_any is available +//wait until first job is successful or all failed //TODO: use std::when_any when available template class AsyncFirstResult -- cgit