Try abort on current thread join.

This commit is contained in:
Nikolai Kochetov 2022-10-21 10:05:25 +00:00
parent ad3b324382
commit 2ddc55a92a

View File

@ -178,7 +178,10 @@ public:
func = std::forward<Function>(func),
args = std::make_tuple(std::forward<Args>(args)...)]() mutable /// mutable is needed to destroy capture
{
SCOPE_EXIT(state->event.set());
SCOPE_EXIT(
state->thread_id = std::thread::id();
state->event.set();
);
state->thread_id = std::this_thread::get_id();