diff -r fb9168c2e069 -r 8c48f5e0cd92 DebugClients/Python3/DebugClientThreads.py --- a/DebugClients/Python3/DebugClientThreads.py Thu Sep 15 21:49:13 2016 +0200 +++ b/DebugClients/Python3/DebugClientThreads.py Sun Sep 18 21:35:53 2016 +0200 @@ -10,7 +10,6 @@ import _thread import sys -from AsyncIO import AsyncIO from DebugThread import DebugThread import DebugClientBase @@ -49,7 +48,7 @@ from threading import RLock -class DebugClientThreads(DebugClientBase.DebugClientBase, AsyncIO): +class DebugClientThreads(DebugClientBase.DebugClientBase): """ Class implementing the client side of the debugger. @@ -60,8 +59,6 @@ """ Constructor """ - AsyncIO.__init__(self) - DebugClientBase.DebugClientBase.__init__(self) # protection lock for synchronization @@ -82,7 +79,7 @@ """ Public method to setup a thread for DebugClient to debug. - If mainThread is non-zero, then we are attaching to the already + If mainThread is True, then we are attaching to the already started mainthread of the app and the rest of the args are ignored. @param target the start function of the target thread (i.e. the @@ -131,7 +128,9 @@ Public method to acquire the lock for this client. @param blocking flag to indicating a blocking lock + @type bool @return flag indicating successful locking + @rtype bool """ if blocking: self.clientLock.acquire() @@ -155,7 +154,7 @@ """ try: self.lockClient() - if id is None: + if id is None or id not in self.threads: self.currentThread = None else: self.currentThread = self.threads[id]