Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 33715:a46b76eb9053 legacy-trunk
SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick
Coghlan, for determining whether PyEval_InitThreads() has been called.
Also purged the undocumented+unused _PyThread_Started int.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 11 Oct 2004 02:40:51 +0000 |
| parents | 55fba88930bc |
| children | b0ec4c9d595b |
comparison
equal
deleted
inserted
replaced
| 33714:635dd8a9ebd9 | 33715:a46b76eb9053 |
|---|---|
| 1515 | 1515 |
| 1516 /* Clean up and exit */ | 1516 /* Clean up and exit */ |
| 1517 | 1517 |
| 1518 #ifdef WITH_THREAD | 1518 #ifdef WITH_THREAD |
| 1519 #include "pythread.h" | 1519 #include "pythread.h" |
| 1520 int _PyThread_Started = 0; /* Set by threadmodule.c and maybe others */ | |
| 1521 #endif | 1520 #endif |
| 1522 | 1521 |
| 1523 #define NEXITFUNCS 32 | 1522 #define NEXITFUNCS 32 |
| 1524 static void (*exitfuncs[NEXITFUNCS])(void); | 1523 static void (*exitfuncs[NEXITFUNCS])(void); |
| 1525 static int nexitfuncs = 0; | 1524 static int nexitfuncs = 0; |
