mirror of
https://github.com/avatartwo/avatar2.git
synced 2026-10-11 22:29:59 +00:00
+ syncronous -> synchronous
+ added .idea to .gitignore
This commit is contained in:
@@ -100,3 +100,6 @@ ENV/
|
||||
|
||||
# Vim swap files
|
||||
*.swp
|
||||
|
||||
# Pycharm/IntelliJ files
|
||||
.idea
|
||||
+2
-3
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user