thread_ctrl::finalize crash fix

This commit is contained in:
Nekotekina 2017-03-13 13:14:34 +03:00
parent d09dd29054
commit c72a5a5775
1 changed files with 5 additions and 0 deletions

View File

@ -1500,6 +1500,11 @@ void thread_ctrl::finalize(std::exception_ptr eptr) noexcept
const u64 time = 0;
#endif
g_tls_log_prefix = []
{
return g_tls_this_thread->m_name;
};
LOG_NOTICE(GENERAL, "Thread time: %fs (%fGc); Faults: %u [rsx:%u, spu:%u];",
time / 1000000000.,
cycles / 1000000000.,