summaryrefslogtreecommitdiff
path: root/py/demo/Ice/bidir/Server.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-04-18 22:43:58 +0000
committerMark Spruiell <mes@zeroc.com>2005-04-18 22:43:58 +0000
commita2e4e355b12caac277a5ef1df27220ab955b214c (patch)
treebe4f1160009747025ba96a8db908ea88bcfad808 /py/demo/Ice/bidir/Server.py
parentre-enable closing thread pool pipe FDs in Windows (diff)
downloadice-a2e4e355b12caac277a5ef1df27220ab955b214c.tar.bz2
ice-a2e4e355b12caac277a5ef1df27220ab955b214c.tar.xz
ice-a2e4e355b12caac277a5ef1df27220ab955b214c.zip
fix for bug 243: python demos lack mutex protection
Diffstat (limited to 'py/demo/Ice/bidir/Server.py')
-rw-r--r--py/demo/Ice/bidir/Server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/demo/Ice/bidir/Server.py b/py/demo/Ice/bidir/Server.py
index 58f2aaf41dd..a200c2eceaf 100644
--- a/py/demo/Ice/bidir/Server.py
+++ b/py/demo/Ice/bidir/Server.py
@@ -45,11 +45,15 @@ class CallbackSenderI(Demo.CallbackSender, threading.Thread):
self.join()
def addClient(self, ident, current=None):
+ self._cond.acquire()
+
print "adding client `" + Ice.identityToString(ident) + "'"
client = Demo.CallbackReceiverPrx.uncheckedCast(current.con.createProxy(ident))
self._clients.append(client)
+ self._cond.release()
+
def run(self):
self._cond.acquire()