]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove stale comment 1511/head
authorClaudio Freire <klaussfreire@gmail.com>
Wed, 2 Sep 2015 19:10:19 +0000 (16:10 -0300)
committerClaudio Freire <klaussfreire@gmail.com>
Wed, 2 Sep 2015 19:10:19 +0000 (16:10 -0300)
tornado/ioloop.py

index 67935fcf5d49dd48cb4c71d943011c3f3335bc92..00db880ae8f4534508f6594b256f1a67ad622dc3 100644 (file)
@@ -909,9 +909,6 @@ class PollIOLoop(IOLoop):
         self._cancellations += 1
 
     def add_callback(self, callback, *args, **kwargs):
-        # The check doesn't need to be guarded by the callback lock,
-        # since the GIL makes all access to it atomic, and it can
-        # only ever transition to True
         if thread.get_ident() != self._thread_ident:
             # If we're not on the IOLoop's thread, we need to synchronize
             # with other threads, or waking logic will induce a race.