From 5353ac85bfa600a573a45ecd25d6e8eaa60dde27 Mon Sep 17 00:00:00 2001 From: Claudio Freire Date: Wed, 2 Sep 2015 16:10:19 -0300 Subject: [PATCH] Remove stale comment --- tornado/ioloop.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 67935fcf5..00db880ae 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -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. -- 2.47.2