mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
thread_t cleanup
This commit is contained in:
parent
be9a599beb
commit
d9403c2ed2
7 changed files with 40 additions and 94 deletions
|
@ -248,6 +248,12 @@ namespace vm
|
|||
return true;
|
||||
}
|
||||
|
||||
waiter_lock_t::waiter_lock_t(thread_t& thread, u32 addr, u32 size)
|
||||
: m_waiter(_add_waiter(thread, addr, size))
|
||||
, m_lock(thread.mutex, std::adopt_lock) // must be locked in _add_waiter
|
||||
{
|
||||
}
|
||||
|
||||
void waiter_lock_t::wait()
|
||||
{
|
||||
// if another thread successfully called pred(), it must be set to null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue