From 6a443c0fbd725ca70769c0104fbd53094dd9dceb Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 12 Oct 2019 19:14:50 +0300 Subject: [PATCH] Deprecate thread_ctrl::spawn --- Utilities/Thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.h b/Utilities/Thread.h index f54a64fd5a..7917744f24 100644 --- a/Utilities/Thread.h +++ b/Utilities/Thread.h @@ -289,7 +289,7 @@ public: // Spawn a detached named thread template - static void spawn(std::string_view name, F&& func) + [[deprecated]] static void spawn(std::string_view name, F&& func) { new named_thread(thread_state::detached, name, std::forward(func)); }