<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/thread_pthread.h, branch v2.2a3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/thread_pthread.h?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/thread_pthread.h?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-08-29T15:24:53Z</updated>
<entry>
<title>GUSI on the Mac creates threads with a default stack size of 20KB, which is</title>
<updated>2001-08-29T15:24:53Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2001-08-29T15:24:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c51395d79744a1aeb456d34b9bf5b5ea110ee677'/>
<id>urn:sha1:c51395d79744a1aeb456d34b9bf5b5ea110ee677</id>
<content type='text'>
not enough for Python. Increased the stacksize to a (somewhat arbitrary)
64KB.
</content>
</entry>
<entry>
<title>REMOVED all CWI, CNRI and BeOpen copyright markings.</title>
<updated>2000-09-01T23:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-09-01T23:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8586991099e4ace18ee94163a96b8ea1bed77ebe'/>
<id>urn:sha1:8586991099e4ace18ee94163a96b8ea1bed77ebe</id>
<content type='text'>
This should match the situation in the 1.6b1 tree.
</content>
</entry>
<entry>
<title>This patch partly (some stuff went in already) ports Python to Monterey.</title>
<updated>2000-08-23T21:33:05Z</updated>
<author>
<name>Trent Mick</name>
<email>trentm@activestate.com</email>
</author>
<published>2000-08-23T21:33:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=635f6fb0e9fade3c734d650951815682b08bbec2'/>
<id>urn:sha1:635f6fb0e9fade3c734d650951815682b08bbec2</id>
<content type='text'>
- Fix bug in thread_pthread.h::PyThread_get_thread_ident() where
  sizeof(pthread) &lt; sizeof(long).
- Add 'configure' for:
	- SIZEOF_PTHREAD is pthread_t can be included via &lt;pthread.h&gt;
	- setting Monterey system name
	- appropriate CC,LINKCC,LDSHARED,OPT, and CCSHARED for Monterey
- Add section in README for Monterey build
</content>
</entry>
<entry>
<title>Mass ANSIfication of function definitions. Doesn't cover all 'extern'</title>
<updated>2000-07-22T18:47:25Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2000-07-22T18:47:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f70ef4f8606f99744252a804229d53a4d97601c1'/>
<id>urn:sha1:f70ef4f8606f99744252a804229d53a4d97601c1</id>
<content type='text'>
declarations yet, those come later.
</content>
</entry>
<entry>
<title>Change copyright notice - 2nd try.</title>
<updated>2000-06-30T23:58:06Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:58:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffcc3813d82e6b96db79f518f4e67b940a13ce64'/>
<id>urn:sha1:ffcc3813d82e6b96db79f518f4e67b940a13ce64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change copyright notice.</title>
<updated>2000-06-30T23:50:40Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-06-30T23:50:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fd71b9e9d496caa510dec56a9b69966558d6ba5d'/>
<id>urn:sha1:fd71b9e9d496caa510dec56a9b69966558d6ba5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Trent Mick &lt;trentm@activestate.com&gt;:</title>
<updated>2000-06-30T15:01:00Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-06-30T15:01:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a44d353e2b6d947d36ab9d36c1fc84335a0878fe'/>
<id>urn:sha1:a44d353e2b6d947d36ab9d36c1fc84335a0878fe</id>
<content type='text'>
The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.

The problem as stated by Tim:
&gt; Unfortunately, the C committee refused to define what %p conversion "looks
&gt; like" -- they explicitly allowed it to be implementation-defined. Older
&gt; versions of Microsoft C even stuck a colon in the middle of the address (in
&gt; the days of segment+offset addressing)!

The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.


Notes on the patch:

There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)


Closes SourceForge patch #100505.
</content>
</entry>
<entry>
<title>Rob Riggs wrote:</title>
<updated>1999-03-15T20:27:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-03-15T20:27:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=701f25ef9dd2b97da2260dabab778ed4ab011047'/>
<id>urn:sha1:701f25ef9dd2b97da2260dabab778ed4ab011047</id>
<content type='text'>
"""
Spec says that on success pthread_create returns 0. It does not say
that an error code will be &lt; 0. Linux glibc2 pthread_create() returns
ENOMEM (12) when one exceed process limits. (It looks like it should
return EAGAIN, but that's another story.)

For reference, see:
http://www.opengroup.org/onlinepubs/7908799/xsh/pthread_create.html
"""

[I have a feeling that similar bugs were fixed before; perhaps someone
could check that all error checks no check for != 0?]
</content>
</entry>
<entry>
<title>Thanks to Chris Herborth, the thread primitives now have proper Py*</title>
<updated>1998-12-21T19:32:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-12-21T19:32:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=65d5b5763c6bbd99d2e2c6b219570f4562382ff0'/>
<id>urn:sha1:65d5b5763c6bbd99d2e2c6b219570f4562382ff0</id>
<content type='text'>
names in the source code (they already had those for the linker,
through some smart macros; but the source still had the old, un-Py names).
</content>
</entry>
<entry>
<title>BSDI specific patches, inspired by Nigel Head and otto@mail.olympus.net.</title>
<updated>1998-10-07T16:39:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-10-07T16:39:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e46e562640cdf5c2e69cd39ef4f30254c107e87'/>
<id>urn:sha1:9e46e562640cdf5c2e69cd39ef4f30254c107e87</id>
<content type='text'>
Also (non-BSDI specific):

- Change the CHECK_STATUS() macro so it tests for nonzero error codes
instead of negative error codes only (this was needed for BSDI, but
appears to be correct according to the PTHREADS spec).

- use memset() to zero out the allocated lock structure.  Again, this
was needed for BSDI, but can't hurt elsewhere either.
</content>
</entry>
</feed>
