diff options
Diffstat (limited to 'cpp/test')
-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; |