Skip to content

Commit

Permalink
For some reason Xms crashes on linux
Browse files Browse the repository at this point in the history
Use chrono::milliseconds(ms) instead
  • Loading branch information
nico-abram authored Oct 5, 2018
1 parent ab4b04b commit e6fdaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RageThreads.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ThreadData
void waitForUpdate()
{
std::unique_lock<std::mutex> lk(_updatedMutex);
_updatedCV.wait_for(lk, 100ms, [this] { return this->getUpdated(); });
_updatedCV.wait_for(lk, chrono::milliseconds(100), [this] { return this->getUpdated(); });
}
void setUpdated(bool b)
{
Expand Down

0 comments on commit e6fdaee

Please sign in to comment.