From 3a77601505ca156f4483d2fbae744142c0f3fcaf Mon Sep 17 00:00:00 2001 From: ihsan demir Date: Mon, 18 Dec 2017 18:01:41 +0300 Subject: [PATCH] Fix for the incorrect millisecond count for windows sleep. fixes https://github.com/hazelcast/hazelcast-cpp-client/issues/293 --- hazelcast/src/hazelcast/util/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hazelcast/src/hazelcast/util/Thread.cpp b/hazelcast/src/hazelcast/util/Thread.cpp index e7c0eea6f3..004895d3c8 100644 --- a/hazelcast/src/hazelcast/util/Thread.cpp +++ b/hazelcast/src/hazelcast/util/Thread.cpp @@ -71,7 +71,7 @@ namespace hazelcast { isInterrupted = false; throw thread_interrupted(); } - bool wokenUpbyInterruption = condition.waitFor(mutex, seconds); + bool wokenUpbyInterruption = condition.waitFor(mutex, seconds * 1000); if(wokenUpbyInterruption && isInterrupted){ isInterrupted = false; throw thread_interrupted();