mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
sys_lv2dbg added, bugfix
This commit is contained in:
parent
daa93a7226
commit
4bacfcf847
46 changed files with 1484 additions and 1205 deletions
|
@ -1330,11 +1330,13 @@ void thread_t::detach()
|
|||
// +clear m_thread
|
||||
const auto ctrl = std::move(m_thread);
|
||||
|
||||
// notify if detached by another thread
|
||||
if (g_tls_this_thread != m_thread.get())
|
||||
{
|
||||
// lock for reliable notification
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
|
||||
cv.notify_all();
|
||||
cv.notify_one();
|
||||
}
|
||||
|
||||
ctrl->m_thread.detach();
|
||||
|
@ -1359,7 +1361,7 @@ void thread_t::join()
|
|||
// lock for reliable notification
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
|
||||
cv.notify_all();
|
||||
cv.notify_one();
|
||||
}
|
||||
|
||||
ctrl->m_thread.join();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue