CHECK_EMU_STATUS, autojoin_thread_t

This commit is contained in:
Nekotekina 2015-07-04 02:22:24 +03:00
parent 8f9e1100c8
commit 3064cf8101
28 changed files with 145 additions and 179 deletions

View file

@ -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");
}
}