Debian Codegraph @

rpython/translator/c/src/thread.c

raw symbols SCIP
1 /* Thread implementation */
2 #include "src/thread.h"
3
4 #ifdef PYPY_USING_BOEHM_GC
5 /* The following include is required by the Boehm GC, which apparently
6 * crashes when pthread_create_thread() is not redefined to call a
7 * Boehm wrapper function instead. Ugly.
8 */
9 #include "common_header.h"
10 #endif
11
12
13 #ifdef PYPY_MAKEFILE
14 /* This is needed for having 'pypy_threadlocal_s' defined, which is needed
15 for _rpygil_get_my_ident */
16 # include "common_header.h"
17 # include "structdef.h"
18 #endif
19
20
21 #ifdef _WIN32
22 #include "src/thread_win7.c"
23 #else
24 #include "src/thread_pthread.c"
25 #endif