summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/dispatcher/Dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/dispatcher/Dispatcher.cpp')
-rw-r--r--cpp/test/Ice/dispatcher/Dispatcher.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/test/Ice/dispatcher/Dispatcher.cpp b/cpp/test/Ice/dispatcher/Dispatcher.cpp
index 53b3195dd97..f88fce0a2fe 100644
--- a/cpp/test/Ice/dispatcher/Dispatcher.cpp
+++ b/cpp/test/Ice/dispatcher/Dispatcher.cpp
@@ -10,7 +10,7 @@
#include <Dispatcher.h>
#include <TestCommon.h>
-Dispatcher* Dispatcher::_instance = 0;
+IceUtil::Handle<Dispatcher> Dispatcher::_instance;
Dispatcher::Dispatcher()
{
@@ -59,12 +59,12 @@ Dispatcher::run()
Ice::DispatcherCallPtr call;
{
Lock sync(*this);
-
+
while(!_terminated && _calls.empty())
- {
+ {
wait();
}
-
+
if(!_calls.empty())
{
call = _calls.front();
@@ -76,8 +76,8 @@ Dispatcher::run()
return;
}
}
-
-
+
+
if(call)
{
try