[Python-checkins] CVS: python/dist/src/Include pythread.h,2.17,2.18
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 16 Oct 2001 14:13:51 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv29764/Include
Modified Files:
pythread.h
Log Message:
Partial patch from SF #452266, by Jason Petrone.
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.)
Index: pythread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythread.h,v
retrieving revision 2.17
retrieving revision 2.18
diff -C2 -d -r2.17 -r2.18
*** pythread.h 2000/09/01 23:29:26 2.17
--- pythread.h 2001/10/16 21:13:49 2.18
***************
*** 14,18 ****
DL_IMPORT(void) PyThread_init_thread(void);
! DL_IMPORT(int) PyThread_start_new_thread(void (*)(void *), void *);
DL_IMPORT(void) PyThread_exit_thread(void);
DL_IMPORT(void) PyThread__PyThread_exit_thread(void);
--- 14,18 ----
DL_IMPORT(void) PyThread_init_thread(void);
! DL_IMPORT(long) PyThread_start_new_thread(void (*)(void *), void *);
DL_IMPORT(void) PyThread_exit_thread(void);
DL_IMPORT(void) PyThread__PyThread_exit_thread(void);