diff --git a/Thread.cc b/Thread.cc index d5f9dc0..739fd60 100644 --- a/Thread.cc +++ b/Thread.cc @@ -90,6 +90,11 @@ namespace Alepha::Hydrogen::detail::Thread_m state()->interruption_point(); } + static auto init= Utility::enroll <=[] + { + state()= std::make_shared< ThreadState >(); + }; + struct Thread::Impl { std::thread thr;