summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
AgeCommit message (Collapse)AuthorLines
2002-01-10cosmetic change to add a commit message for the last commit, accidentlyAnthony Baxter-1/+1
sent with empty message. sheesh. Lucky I decided it was worth doing last minute complete compile tests. cvs merge stupid on my part fixed that made solaris builds totally fail.
2002-01-10thread_pthread.hAnthony Baxter-1/+1
2001-12-23backport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:Anthony Baxter-0/+11
Improve threading on Solaris, according to SF patch #460269, submitted by bbrox@bbrox.org / lionel.ulmer@free.fr. This adds a configure check and if all goes well turns on the PTHREAD_SCOPE_SYSTEM thread attribute for new threads. This should remove the need to add tiny sleeps at the start of threads to allow other threads to be scheduled. This is a semi-feature, but makes such a huge difference to the performance of Zope on Solaris that it's worthwhile (well, imho).
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-08-23This patch partly (some stuff went in already) ports Python to Monterey.Trent Mick-0/+11
- Fix bug in thread_pthread.h::PyThread_get_thread_ident() where sizeof(pthread) < sizeof(long). - Add 'configure' for: - SIZEOF_PTHREAD is pthread_t can be included via <pthread.h> - setting Monterey system name - appropriate CC,LINKCC,LDSHARED,OPT, and CCSHARED for Monterey - Add section in README for Monterey build
2000-07-22Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters-21/+40
declarations yet, those come later.
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-30Trent Mick <trentm@activestate.com>:Fred Drake-10/+10
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: > Unfortunately, the C committee refused to define what %p conversion "looks > like" -- they explicitly allowed it to be implementation-defined. Older > versions of Microsoft C even stuck a colon in the middle of the address (in > 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.
1999-03-15Rob Riggs wrote:Guido van Rossum-2/+2
""" Spec says that on success pthread_create returns 0. It does not say that an error code will be < 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?]
1998-12-21Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum-43/+43
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).
1998-10-07BSDI specific patches, inspired by Nigel Head and otto@mail.olympus.net.Guido van Rossum-1/+22
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.
1998-09-10Apparently on AIX when using gcc you need to call pthread_init()Guido van Rossum-0/+3
(which is not a POSIX threads call!). Reported and confirmed by Brad Howes.
1998-09-04Correct typo in #ifdef: PY_THREAD_D4, should be PY_PTHREAD_D4.Guido van Rossum-1/+1
Reported by Jonathan Giddy.
1998-08-27Add a 'volatile' to the declaration of threadid in get_thread_ident().Guido van Rossum-1/+1
According to Vladimir Marangozov, this is necessary for AIX, where high optimization levels inline this function and then get it wrong :-(
1998-05-14Improved version of patch for HPUX from David Arnold.Guido van Rossum-4/+1
1998-05-07Support HPUX 10.20 DCE threads.Guido van Rossum-0/+6
1998-04-10Make new gcc -Wall happyGuido van Rossum-1/+2
1997-06-02Add default case (standard conformance) to avoid piling upGuido van Rossum-4/+4
system specific #ifdefs.
1997-05-22DG/UX thread patches (Ross Andrus)Guido van Rossum-3/+8
1997-05-15Add pthred-std define for Linux.Guido van Rossum-0/+2
1997-05-13Support for various versions of the pthread draft.Guido van Rossum-12/+64
1997-04-30Add detach call so threads are GC'ed.Guido van Rossum-0/+2
1997-01-17Working semaphore implementation by Sjoerd.Guido van Rossum-3/+64
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-10-08Sjoerd's thread changes (including down_sema typo fix).Guido van Rossum-2/+3
Note: waitflag not supported on NT.
1996-08-08Changes necessary for AIX.Guido van Rossum-0/+15
1996-06-11Got rid of florida hack and made it work with Solaris 2.5 pthreads.Guido van Rossum-18/+6
Wonder if this will break it on all other platforms :-)
1995-01-09Alpha OSF/1 fixGuido van Rossum-1/+4
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
1994-05-23ceval.c: dict of local mapping is now a tupleGuido van Rossum-3/+8
compile.c: lists and dictionary in code objects become tuples import.c: bump MAGIC thread*.[ch]: added thread_ident() function version.c: added '++' to version number and bumped date
1994-05-11Tim's changes; removed some remaining non-functional ifdefsGuido van Rossum-83/+86
1994-05-09Split thread.c into a number of system-specific files.Guido van Rossum-0/+272
Added Tim Peters' pthread version.