comparison Python/thread.c @ 9679:877d23bd5bdc legacy-trunk

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).
author Guido van Rossum <guido@python.org>
date Mon, 21 Dec 1998 19:32:43 +0000
parents 01c8fe44064b
children d834ecdf8c26
comparison
equal deleted inserted replaced
9678:f39a19a1229a 9679:877d23bd5bdc
107 #define d2printf(args) 107 #define d2printf(args)
108 #endif 108 #endif
109 109
110 static int initialized; 110 static int initialized;
111 111
112 static void _init_thread(); /* Forward */ 112 static void PyThread__init_thread(); /* Forward */
113 113
114 void init_thread _P0() 114 void PyThread_init_thread _P0()
115 { 115 {
116 #ifdef Py_DEBUG 116 #ifdef Py_DEBUG
117 char *p = getenv("THREADDEBUG"); 117 char *p = getenv("THREADDEBUG");
118 118
119 if (p) { 119 if (p) {
124 } 124 }
125 #endif /* Py_DEBUG */ 125 #endif /* Py_DEBUG */
126 if (initialized) 126 if (initialized)
127 return; 127 return;
128 initialized = 1; 128 initialized = 1;
129 dprintf(("init_thread called\n")); 129 dprintf(("PyThread_init_thread called\n"));
130 _init_thread(); 130 PyThread__init_thread();
131 } 131 }
132 132
133 #ifdef SGI_THREADS 133 #ifdef SGI_THREADS
134 #include "thread_sgi.h" 134 #include "thread_sgi.h"
135 #endif 135 #endif