summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
AgeCommit message (Collapse)AuthorLines
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-222/+222
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
2006-06-13Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre-3/+74
Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes).
2006-06-04Revert revisions:Tim Peters-61/+2
46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
2006-06-04Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre-2/+61
2006-03-23Patch #1396919: Reenable the system scope threads on FreeBSD 5.4Hye-Shik Chang-1/+11
and later versions because they bumped the default setting to get our basic tests to run correctly..
2005-09-20Don't call memset() before checking that the ptr is not NULL.Armin Rigo-1/+1
2005-03-28Add 0 to _POSIX_SEMAPHORES. Will backport to 2.4.Martin v. Löwis-1/+3
2005-03-16Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean noAnthony Baxter-0/+4
support for posix semaphores.
2004-07-07This closes patch:Michael W. Hudson-11/+0
[ 960406 ] unblock signals in threads although the changes do not correspond exactly to any patch attached to that report. Non-main threads no longer have all signals masked. A different interface to readline is used. The handling of signals inside calls to PyOS_Readline is now rather different. These changes are all a bit scary! Review and cross-platform testing much appreciated.
2004-03-04SF Patch #902444: Use process scope thread on FreeBSD. System scopeHye-Shik Chang-1/+1
is too expensive on FreeBSD's KSE threading infrastructure and even test_threadedimport fails on default setting.
2004-03-03typoSkip Montanaro-1/+1
2004-02-07Remove support for systems defining Py_PTHREAD_D[467] inSkip Montanaro-72/+0
Python/thread_pthread.h.
2004-01-17remove DGUX support.Skip Montanaro-10/+2
2003-11-19Getting rid of code dependent on GUSI or the MetroWerks compiler.Jack Jansen-8/+0
2003-07-22Patch 775605: Cygwin pthread_sigmask() workaround patchJason Tishler-1/+1
Cygwin's pthread_sigmask() implementation appears to be buggy. This patch works around this problem by using sigprocmask() instead. This patch is implemented in a general way so it could be used by other platforms too. If this approach is deemed too risky, then I can work up a patch that just hacks Python/thread_pthread.h for Cygwin. Note that I tested this patch against 2.3c1 under Red Hat Linux 8.0 too. [snip] And finally, I need someone to regenerate pyconfig.h.in and configure with the same versions of the autotools that are normally used by Python. Neal kindly regenerated pyconfig.h.in and configure for me.
2003-04-19Patch #716969: Detect thread creation failure. Will backport to 2.2.Martin v. Löwis-6/+8
2003-04-18Patch #711835: Remove unnecessary lock operations. Will backport to 2.2.Martin v. Löwis-8/+4
2003-01-21Don't use Posix semaphores on Solaris 8. Fixes #662787.Martin v. Löwis-1/+1
2002-12-11Patch #650415: Avoid redefinition of macros.Martin v. Löwis-0/+12
2002-12-02Add compile-time errors for unsupported systems.Martin v. Löwis-0/+5
2002-10-04Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.Martin v. Löwis-2/+2
2002-03-17Document that _POSIX_SEMAPHORES is predefined.Martin v. Löwis-0/+4
2002-03-17Patch #525532: Add support for POSIX semaphores.Martin v. Löwis-0/+119
2002-01-19Remove the unused & broken PyThread_*_sema() functions and related constants.Fred Drake-98/+0
This closes SF patch #504215.
2002-01-15Workaround for what is probably a problem in Apple's gcc: <pthread.h> failsJack Jansen-0/+6
on a function pointer formal argument called "destructor", which is typedeffed as a different function pointer type in object.h.
2001-11-09Fix memory leak. This is part of SF patch #478006.Fred Drake-1/+1
2001-10-16Partial patch from SF #452266, by Jason Petrone.Guido van Rossum-2/+6
This changes Pythread_start_thread() to return the thread ID, or -1 for an error. (It's technically an incompatible API change, but I doubt anyone calls it.)
2001-10-15Do not define _POSIX_THREADS if unistd.h defines it.Martin v. Löwis-1/+1
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
2001-10-12Add SF patch #468347 -- mask signals for non-main pthreads, by Jason Lowe:Guido van Rossum-0/+26
This patch updates Python/thread_pthread.h to mask all signals for any thread created. This will keep all signals masked for any thread that isn't the initial thread. For Solaris and Linux, the two platforms I was able to test it on, it solves bug #465673 (pthreads need signal protection) and probably will solve bug #219772 (Interactive InterPreter+ Thread -> core dump at exit). I'd be great if this could get some testing on other platforms, especially HP-UX pre 11.00 and post 11.00, as I had to make some guesses for the DCE thread case. AIX is also a concern as I saw some mention of using sigthreadmask() as a pthread_sigmask() equivalent, but this patch doesn't use sigthreadmask(). I don't have access to AIX.
2001-09-10Improve threading on Solaris, according to SF patch #460269, submittedGuido van Rossum-3/+8
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.
2001-08-29GUSI on the Mac creates threads with a default stack size of 20KB, which isJack Jansen-1/+21
not enough for Python. Increased the stacksize to a (somewhat arbitrary) 64KB.
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