[Python-checkins] python/dist/src/Lib threading.py,1.45,1.46
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Sat Jan 8 03:44:26 CET 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24321/Lib
Modified Files:
threading.py
Log Message:
In _DummyThread objects the lock stored in __block (allocated thanks to
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #1089632.
Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- threading.py 21 Jul 2004 03:36:52 -0000 1.45
+++ threading.py 8 Jan 2005 02:43:51 -0000 1.46
@@ -653,6 +653,7 @@
def __init__(self):
Thread.__init__(self, name=_newname("Dummy-%d"))
+ del self._Thread__block
self._Thread__started = True
_active_limbo_lock.acquire()
_active[_get_ident()] = self
More information about the Python-checkins
mailing list