From 858e179438e37bea09086c81575fbd0ca00d792c Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Fri, 14 Mar 2008 01:06:57 +0800 Subject: fix strange scheduling problem in the hold test. --- cpp/test/Ice/hold/TestI.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/test') diff --git a/cpp/test/Ice/hold/TestI.cpp b/cpp/test/Ice/hold/TestI.cpp index 6fd79f7d6de..6015e18768d 100644 --- a/cpp/test/Ice/hold/TestI.cpp +++ b/cpp/test/Ice/hold/TestI.cpp @@ -40,6 +40,8 @@ HoldI::putOnHold(Ice::Int milliSeconds, const Ice::Current&) Ice::Int HoldI::set(Ice::Int value, const Ice::Current&) { + IceUtil::ThreadControl::yield(); + Lock sync(*this); Ice::Int tmp = _last; _last = value; -- cgit v1.2.3