summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2008-03-14 01:06:57 +0800
committerMatthew Newhook <matthew@zeroc.com>2008-03-14 01:06:57 +0800
commit858e179438e37bea09086c81575fbd0ca00d792c (patch)
tree92ca554ff62796d666f134d228ce61ddeda3f047 /cpp
parentget rid of some optimizer warnings. (diff)
downloadice-858e179438e37bea09086c81575fbd0ca00d792c.tar.bz2
ice-858e179438e37bea09086c81575fbd0ca00d792c.tar.xz
ice-858e179438e37bea09086c81575fbd0ca00d792c.zip
fix strange scheduling problem in the hold test.
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/Ice/hold/TestI.cpp2
1 files changed, 2 insertions, 0 deletions
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;