summaryrefslogtreecommitdiff
path: root/Python/thread.c
AgeCommit message (Collapse)AuthorLines
2005-09-14(backport from HEAD)Guido van Rossum-0/+14
- Changes donated by Elemental Security to make it work on HP-UX 11 on Itanium2 with HP's 64-bit compiler (SF patch #1225212).
2004-10-10find_key(): This routine wasn't thread-correct, and accounts for theTim Peters-5/+17
release-build failures noted in bug 1041645. This is a critical bugfix. I'm not going to backport it, though (no time).
2004-10-09Document the results of painful reverse-engineering of the "portable TLS"Tim Peters-5/+83
code. PyThread_set_key_value(): It's clear that this code assumes the passed-in value isn't NULL, so document that it must not be, and assert that it isn't. It remains unclear whether existing callers want the odd semantics actually implemented by this function.
2004-10-09Style guide & consistency changes. No semantic changes.Tim Peters-6/+12
2004-08-16The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSDMatthias Klose-0/+10
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any system that does the same. python fails to build because it doesn't detect gnu pth in pthread emulation. See C comments in patch for details. patch taken from http://bugs.debian.org/264315
2004-02-10remove support for missing ANSI C header files (limits.h, stddef.h, etc).Skip Montanaro-6/+0
2004-01-17remove DGUX support.Skip Montanaro-4/+0
2003-11-19Getting rid of code dependent on GUSI or the MetroWerks compiler.Jack Jansen-4/+0
2003-09-20Patch #805613: Fix usage of the PTH library.Martin v. Löwis-0/+1
2003-04-19New PyGILState_ API - implements pep 311, from patch 684256.Mark Hammond-0/+108
2002-07-19Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.Mark Hammond-5/+0
2002-06-25Silence compiler warningJeremy Hylton-1/+1
2002-06-11Patch #488073: AtheOS port.Martin v. Löwis-0/+4
2002-03-25I've been waiting 8 years for KSR to re-emerge from bankruptcy. If theyTim Peters-4/+0
ever do, they can damn well #define _POSIX_THREADS their own damn selves.
2002-03-09Patch #504224: add plan9 threads include to thread.c.Martin v. Löwis-0/+4
2002-01-12Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis-5/+1
2001-10-16Partial patch from SF #452266, by Jason Petrone.Guido van Rossum-1/+0
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-07-26Repair more now-obsolete references to config.h.Tim Peters-1/+1
2001-07-26Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.Martin v. Löwis-1/+1
2000-10-06Donn Cave <donn@u.washington.edu>:Fred Drake-1/+1
Do not assume that all platforms using a MetroWorks compiler can use POSIX threads; the assumption breaks on BeOS. This fix only helps for BeOS. This closes SourceForge patch #101772.
2000-09-19Make better use of GNU Pth -- patch by Andy Dustman.Guido van Rossum-3/+4
I can't test this, so I'm just checking it in with blind faith in Andy. I've tested that it doesn't broeak a non-Pth build on Linux. Changes include: - There's a --with-pth configure option. - Instead of _GNU_PTH, we test for HAVE_PTH. - Better signal handling. - (The config.h.in file is regenerated in a slightly different order.)
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-07-24Prototype yet another forward declaration.Thomas Wouters-1/+1
2000-07-22Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters-13/+2
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-05-08Andy Dustman: add GNU pth user-space thread support.Guido van Rossum-0/+4
2000-04-24Jack Jansen: Posix threads are now supported on the Macintosh too.Guido van Rossum-0/+4
1999-04-07Changes by Mark Hammond for Windows CE. Mostly of the formGuido van Rossum-0/+8
#ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
1998-12-21Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum-4/+4
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-12-04Need to add default decl of DL_IMPORT, for mymalloc.hGuido van Rossum-0/+5
1998-10-01Renamed thread.h to pythread.h.Guido van Rossum-1/+1
1998-08-04Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum-0/+4
1997-11-22os2 patch by Jeff RushGuido van Rossum-0/+4
1997-05-22DG/UX thread patches (Ross Andrus)Guido van Rossum-0/+4
1997-04-29Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined evenGuido van Rossum-0/+6
when the pthread package is not installed. configure knows better, so #undef _POSIX_THREADS when pthread.h does not exist.
1996-12-30Rename DEBUG macro to Py_DEBUGGuido van Rossum-3/+3
1996-12-05Keep gcc -Wall happy.Guido van Rossum-0/+4
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-08-19Always include config.hGuido van Rossum-2/+0
1995-01-17nt thread supportGuido van Rossum-0/+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-08-30Merge back to main trunkGuido van Rossum-546/+53
1993-12-03Port to Solaris 2.3.Sjoerd Mullender-39/+164
1993-10-12Added widget methods {Height,Width}{,MM}OfScreen.Sjoerd Mullender-1/+1
1993-01-26* Added Fixcprt.py: script to fix copyright message.Guido van Rossum-0/+24
* various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
1993-01-13ushdr_t was not defined so fill in its size instead of using sizeof.Sjoerd Mullender-2/+3
1993-01-13Added error checking.Sjoerd Mullender-21/+82
Improved coexistance with dl module.
1993-01-06Various changes.Sjoerd Mullender-5/+14
* Makefile: svmodule.c.proto and svgen.py are gone, svmodule.c came in their stead. Also, pass -DUSE_DL flag to thread.c and give the user a possibility to add the -DDEBUG to just thread.c. * ceval.c: init_save_thread() can be called more than once now. * svgen.py, svmodule.c.proto, svmodule.c: Removed prototype file and replaced it by the generated file. * thread.c: Added some more checks; added call to DL library when it is also used to tell it where the shared arena is so that DL can use some other area. * threadmodule.c: Call init_save_thread from another place. Also, added new function getlocklock() which does to lock objects what getfilefile does to file objects.
1992-09-11Added C++ support in thread.h; don't use signals if not strictlySjoerd Mullender-5/+16
necessary, and when they are, use SIGKILL; when compiled with -DDEBUG, only print debug messages when "THREADDEBUG" is set in the environment.