diff options
Diffstat (limited to 'python/test/Ice/dispatcher/Dispatcher.py')
-rwxr-xr-x | python/test/Ice/dispatcher/Dispatcher.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/test/Ice/dispatcher/Dispatcher.py b/python/test/Ice/dispatcher/Dispatcher.py index 809f7500920..1c48b947a84 100755 --- a/python/test/Ice/dispatcher/Dispatcher.py +++ b/python/test/Ice/dispatcher/Dispatcher.py @@ -29,6 +29,9 @@ class Dispatcher: if len(self._calls) == 1: self._cond.notify() + def dispatchSync(self, call): + self.dispatch(call, None) + def run(self): while True: call = None @@ -60,3 +63,7 @@ class Dispatcher: @staticmethod def isDispatcherThread(): return threading.current_thread() == Dispatcher._instance._thread + + @staticmethod + def instance(): + return Dispatcher._instance |