mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12: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
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
virtual std::string GetThreadName() const;
|
||||
virtual void SetThreadName(const std::string& name);
|
||||
|
||||
void WaitForAnySignal();
|
||||
void WaitForAnySignal(u64 time = 1);
|
||||
|
||||
void Notify();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue