mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
Remove redundant code
This commit is contained in:
parent
ad686972ff
commit
7df6903cf8
1 changed files with 1 additions and 3 deletions
|
@ -72,10 +72,8 @@ void Lib::ConditionVariable::WaitCondVar(Mutex* mutex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Lib::ConditionVariable::WaitCondVarFor(Mutex* mutex, u32 micros) {
|
bool Lib::ConditionVariable::WaitCondVarFor(Mutex* mutex, u32 micros) {
|
||||||
bool ok = false;
|
|
||||||
std::unique_lock<std::mutex> lock(mutex->m_mutex->m_cs);
|
std::unique_lock<std::mutex> lock(mutex->m_mutex->m_cs);
|
||||||
ok = m_cond_var->m_cv.wait_for(lock, std::chrono::microseconds(micros)) == std::cv_status::no_timeout;
|
return m_cond_var->m_cv.wait_for(lock, std::chrono::microseconds(micros)) == std::cv_status::no_timeout;
|
||||||
return ok;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Lib::ConditionVariable::SignalCondVar() { m_cond_var->m_cv.notify_one(); }
|
void Lib::ConditionVariable::SignalCondVar() { m_cond_var->m_cv.notify_one(); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue