Guido van Rossum
65d5b5763c
Thanks to Chris Herborth, the thread primitives now have proper Py*
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).
27 years ago
Guido van Rossum
9e46e56264
BSDI specific patches, inspired by Nigel Head and otto@mail.olympus.net.
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.
28 years ago
Guido van Rossum
d21744a1dd
Apparently on AIX when using gcc you need to call pthread_init()
(which is not a POSIX threads call!). Reported and confirmed by Brad
Howes.
28 years ago
Guido van Rossum
a74d0e4c55
Correct typo in #ifdef: PY_THREAD_D4, should be PY_PTHREAD_D4.
Reported by Jonathan Giddy.
28 years ago
Guido van Rossum
44ee479427
Add a 'volatile' to the declaration of threadid in get_thread_ident().
According to Vladimir Marangozov, this is necessary for AIX, where
high optimization levels inline this function and then get it wrong :-(
28 years ago
Guido van Rossum
532246ef55
Improved version of patch for HPUX from David Arnold.
28 years ago
Guido van Rossum
89df70bfbb
Support HPUX 10.20 DCE threads.
28 years ago
Guido van Rossum
730806d3d9
Make new gcc -Wall happy
28 years ago
Guido van Rossum
46ff1903a3
Add default case (standard conformance) to avoid piling up
system specific #ifdefs.
29 years ago
Guido van Rossum
64f9105fb7
DG/UX thread patches (Ross Andrus)
29 years ago
Guido van Rossum
c8fba8ee14
Add pthred-std define for Linux.
29 years ago
Guido van Rossum
d6353e2c0e
Support for various versions of the pthread draft.
29 years ago
Guido van Rossum
f4806c2a85
Add detach call so threads are GC'ed.
29 years ago
Guido van Rossum
7af8130857
Working semaphore implementation by Sjoerd.
29 years ago
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
30 years ago
Guido van Rossum
cf1474b73a
Sjoerd's thread changes (including down_sema typo fix).
Note: waitflag not supported on NT.
30 years ago
Guido van Rossum
1a62311cfb
Changes necessary for AIX.
30 years ago
Guido van Rossum
6602099e7c
Got rid of florida hack and made it work with Solaris 2.5 pthreads.
Wonder if this will break it on all other platforms :-)
30 years ago
Guido van Rossum
2565bff40a
Alpha OSF/1 fix
31 years ago
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
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().
31 years ago
Guido van Rossum
e944da8916
ceval.c: dict of local mapping is now a tuple
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
32 years ago
Guido van Rossum
b98b1b3deb
Tim's changes; removed some remaining non-functional ifdefs
32 years ago
Guido van Rossum
2c8cb9f3d2
Split thread.c into a number of system-specific files.
Added Tim Peters' pthread version.
32 years ago