mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-05-17 08:32:58 +00:00
FastCall() removed
This commit is contained in:
parent
5a4aa9096b
commit
c1da446653
8 changed files with 61 additions and 50 deletions
|
@ -25,10 +25,10 @@ void NamedThreadBase::SetThreadName(const std::string& name)
|
|||
m_name = name;
|
||||
}
|
||||
|
||||
void NamedThreadBase::WaitForAnySignal() // wait 1 ms for something
|
||||
void NamedThreadBase::WaitForAnySignal(u64 time) // wait for Notify() signal or sleep
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(m_signal_mtx);
|
||||
m_signal_cv.wait_for(lock, std::chrono::milliseconds(1));
|
||||
m_signal_cv.wait_for(lock, std::chrono::milliseconds(time));
|
||||
}
|
||||
|
||||
void NamedThreadBase::Notify() // wake up waiting thread or nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue