[Python-checkins] python/dist/src/Misc NEWS,1.1216,1.1217

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Jan 8 03:44:04 CET 2005

Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24321/Misc

Modified Files:
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: NEWS
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1216
retrieving revision 1.1217
diff -u -d -r1.1216 -r1.1217
--- NEWS	7 Jan 2005 08:15:41 -0000	1.1216
+++ NEWS	8 Jan 2005 02:43:53 -0000	1.1217
@@ -33,6 +33,11 @@
+- _DummyThread objects in the threading module now delete self.__block that is
+  inherited from _Thread since it uses up a lock allocated by 'thread'.  The
+  lock primitives tend to be limited in number and thus should not be wasted on
+  a _DummyThread object.  Fixes bug #1089632.
 - The imghdr module now detects Exif files.
 - StringIO.truncate() now correctly adjusts the size attribute.

More information about the Python-checkins mailing list