diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-03-14 01:06:57 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-03-14 01:06:57 +0800 |
commit | 858e179438e37bea09086c81575fbd0ca00d792c (patch) | |
tree | 92ca554ff62796d666f134d228ce61ddeda3f047 /cpp | |
parent | get rid of some optimizer warnings. (diff) | |
download | ice-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.cpp | 2 |
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; |