CHECK_EMU_STATUS, autojoin_thread_t
This commit is contained in:
@@ -1214,14 +1214,7 @@ thread_t::~thread_t() noexcept(false)
|
||||
{
|
||||
if (m_thread)
|
||||
{
|
||||
if (g_tls_this_thread != m_thread.get())
|
||||
{
|
||||
m_thread->m_thread.join();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw EXCEPTION("Deadlock");
|
||||
}
|
||||
throw EXCEPTION("Neither joined nor detached");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user