Skip to content

Commit

Permalink
+ syncronous -> synchronous
Browse files Browse the repository at this point in the history
+ added .idea to .gitignore
  • Loading branch information
domenukk committed Jun 27, 2017
1 parent 3134443 commit 6cf34be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ ENV/

# Vim swap files
*.swp

# Pycharm/IntelliJ files
.idea
5 changes: 2 additions & 3 deletions avatar2/avatar2.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _handle_remote_memory_write_msg(self, message):

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.
"""
Expand All @@ -261,7 +261,6 @@ def run(self):
if self._close.is_set():
break

message = None
try:
message = self.queue.get(timeout=0.5)
except:
Expand All @@ -281,7 +280,7 @@ def run(self):

def stop(self):
"""
Stop the thread which manages the asyncronous messages.
Stop the thread which manages the asynchronous messages.
"""
self._close.set()
self.join()
Expand Down
6 changes: 3 additions & 3 deletions avatar2/protocols/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
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
"""

Expand All @@ -50,7 +50,7 @@ def __init__(self, gdb_protocol, gdb_controller, avatar_queue, origin=None):
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
Expand Down

0 comments on commit 6cf34be

Please sign in to comment.