summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
Commit message (Collapse)AuthorAgeFilesLines
* Donn Cave <donn@u.washington.edu>:Fred Drake2000-10-061-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.
* Make better use of GNU Pth -- patch by Andy Dustman.Guido van Rossum2000-09-191-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.)
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Prototype yet another forward declaration.Thomas Wouters2000-07-241-1/+1
|
* Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters2000-07-221-13/+2
| | | | declarations yet, those come later.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Andy Dustman: add GNU pth user-space thread support.Guido van Rossum2000-05-081-0/+4
|
* Jack Jansen: Posix threads are now supported on the Macintosh too.Guido van Rossum2000-04-241-0/+4
|
* Changes by Mark Hammond for Windows CE. Mostly of the formGuido van Rossum1999-04-071-0/+8
| | | | #ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-211-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).
* Need to add default decl of DL_IMPORT, for mymalloc.hGuido van Rossum1998-12-041-0/+5
|
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-011-1/+1
|
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-0/+4
|
* os2 patch by Jeff RushGuido van Rossum1997-11-221-0/+4
|
* DG/UX thread patches (Ross Andrus)Guido van Rossum1997-05-221-0/+4
|
* Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined evenGuido van Rossum1997-04-291-0/+6
| | | | | when the pthread package is not installed. configure knows better, so #undef _POSIX_THREADS when pthread.h does not exist.
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-301-3/+3
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+4
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Always include config.hGuido van Rossum1996-08-191-2/+0
|
* nt thread supportGuido van Rossum1995-01-171-0/+4
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-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().
* Merge back to main trunkGuido van Rossum1994-08-301-546/+53
|
* Port to Solaris 2.3.Sjoerd Mullender1993-12-031-39/+164
|
* Added widget methods {Height,Width}{,MM}OfScreen.Sjoerd Mullender1993-10-121-1/+1
|
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-261-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
* ushdr_t was not defined so fill in its size instead of using sizeof.Sjoerd Mullender1993-01-131-2/+3
|
* Added error checking.Sjoerd Mullender1993-01-131-21/+82
| | | | Improved coexistance with dl module.
* Various changes.Sjoerd Mullender1993-01-061-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.
* Added C++ support in thread.h; don't use signals if not strictlySjoerd Mullender1992-09-111-5/+16
| | | | | necessary, and when they are, use SIGKILL; when compiled with -DDEBUG, only print debug messages when "THREADDEBUG" is set in the environment.
* newest versionSjoerd Mullender1992-09-021-91/+0
|
* adapted SV module to the new svideo library.Sjoerd Mullender1992-09-021-0/+91
| | | | update thread package.
* New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()Guido van Rossum1992-08-171-89/+221
| | | | to avoid hanging in cleanup().
* * Makefile: cosmeticsGuido van Rossum1992-08-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* * Makefile adapted to changes below.Guido van Rossum1992-08-041-0/+263
* split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable