mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +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 ok = false;
|
||||
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 ok;
|
||||
return m_cond_var->m_cv.wait_for(lock, std::chrono::microseconds(micros)) == std::cv_status::no_timeout;
|
||||
}
|
||||
|
||||
void Lib::ConditionVariable::SignalCondVar() { m_cond_var->m_cv.notify_one(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue