summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-04 15:56:27 +0100
committerMattes D <github@xoft.cz>2014-11-04 15:56:27 +0100
commit5dbf6018249101a7ef459dffdb2abfbc4984a442 (patch)
treed9068d059582ce145966a4a4ab799d17a6f31cf3 /src/OSSupport
parentcEvent: Changed steady_clock to system_clock. (diff)
downloadcuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar.gz
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar.bz2
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar.lz
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar.xz
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.tar.zst
cuberite-5dbf6018249101a7ef459dffdb2abfbc4984a442.zip
Diffstat (limited to 'src/OSSupport')
-rw-r--r--src/OSSupport/Event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/Event.cpp b/src/OSSupport/Event.cpp
index 7007b5dd2..d519ad63f 100644
--- a/src/OSSupport/Event.cpp
+++ b/src/OSSupport/Event.cpp
@@ -37,7 +37,7 @@ void cEvent::Wait(void)
bool cEvent::Wait(int a_TimeoutMSec)
{
- std::chrono::system_clock::time_point dst = std::chrono::system_clock::now() + std::chrono::milliseconds(a_TimeoutMSec);
+ std::chrono::system_clock::time_point dst = std::chrono::system_clock::now() + std::chrono::microseconds(a_TimeoutMSec * 1000);
std::unique_lock<std::mutex> Lock(m_Mutex); // We assume that this lock is acquired without much delay - we are the only user of the mutex
while (m_ShouldWait && (std::chrono::system_clock::now() < dst))
{