+ syncronous -> synchronous

+ added .idea to .gitignore
This commit is contained in:
Dominik Maier
2017-06-27 17:34:13 +02:00
parent 3134443419
commit 6cf34be719
3 changed files with 8 additions and 6 deletions
+3
View File
@@ -100,3 +100,6 @@ ENV/
# Vim swap files
*.swp
# Pycharm/IntelliJ files
.idea
+2 -3
View File
@@ -252,7 +252,7 @@ class Avatar(Thread):
def run(self):
"""
The code of the Thread managing the asyncronous messages received.
The code of the Thread managing the asynchronous messages received.
Default behavior: wait for the priority queue to hold a message and call
the _async_handler method to process it.
"""
@@ -261,7 +261,6 @@ class Avatar(Thread):
if self._close.is_set():
break
message = None
try:
message = self.queue.get(timeout=0.5)
except:
@@ -281,7 +280,7 @@ class Avatar(Thread):
def stop(self):
"""
Stop the thread which manages the asyncronous messages.
Stop the thread which manages the asynchronous messages.
"""
self._close.set()
self.join()
+3 -3
View File
@@ -23,8 +23,8 @@ GDB_PROT_RUN = 'running'
class GDBResponseListener(Thread):
"""
This class creates objects waiting for responses from the gdb-process
Depending whether a syncronous or asyncronous message is received,
it is either put in a syncronous dictionary or parsed/lifted
Depending whether a synchronous or asynchronous message is received,
it is either put in a synchronous dictionary or parsed/lifted
to an AvatarMessage and added to the Queue of the according target
"""
@@ -50,7 +50,7 @@ class GDBResponseListener(Thread):
logging.getLogger(self.__class__.__name__)
def get_token(self):
"""Gets a token for a syncronous request
"""Gets a token for a synchronous request
:returns: An (integer) token
"""
self._token += 1