diff options
author | Guido van Rossum <guido@python.org> | 2012-10-24 17:14:41 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2012-10-24 17:14:41 -0700 |
commit | a9c1218a110bf103b43fd1002096474b8350fe2c (patch) | |
tree | 6e587639edd587b3ad8cc18b17218be82b5f9f71 | |
parent | fbb304d5eea6203823f90cf03a44336bfaf4dea3 (diff) | |
download | trollius-a9c1218a110bf103b43fd1002096474b8350fe2c.tar.gz |
Add TODO about checking for races.
-rw-r--r-- | scheduling.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scheduling.py b/scheduling.py index c35c8ce..86e9603 100644 --- a/scheduling.py +++ b/scheduling.py @@ -119,6 +119,7 @@ class Scheduler: # NOTE: Due to the call_soon() semantics, we can't guarantee # that unblock_timeout() isn't called *after* unblock_io() has # already been called. So we must write this defensively. + # TODO: Analyse this further for race conditions etc. if flag == 'r': if fd in self.eventloop.readers: self.eventloop.remove_reader(fd) |