Deprecate thread_ctrl::spawn

This commit is contained in:
Nekotekina 2019-10-12 19:14:50 +03:00
parent 8e21f4d5d4
commit 6a443c0fbd

View File

@ -289,7 +289,7 @@ public:
// Spawn a detached named thread
template <typename F>
static void spawn(std::string_view name, F&& func)
[[deprecated]] static void spawn(std::string_view name, F&& func)
{
new named_thread<F>(thread_state::detached, name, std::forward<F>(func));
}