summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-03-16 21:43:32 +0100
committerStefan Behnel <stefan_ml@behnel.de>2012-03-16 21:43:32 +0100
commit2985e5d080b300d8913e52ffd3ae7a814d578721 (patch)
tree878aa7f43668c16d503f412b66f143692623caeb /Cython/Utility/ModuleSetupCode.c
parentd18be9ae406e911cc8e8499a60fdc0f67c560313 (diff)
downloadcython-2985e5d080b300d8913e52ffd3ae7a814d578721.tar.gz
move 'init threads' utility code to ModuleSetupCode.c file
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 8fe79d51f..e0287daa2 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -222,6 +222,16 @@
#define __Pyx_DOCSTR(n) (n)
#endif
+/////////////// ForceInitThreads.proto ///////////////
+
+#ifndef __PYX_FORCE_INIT_THREADS
+ #define __PYX_FORCE_INIT_THREADS 0
+#endif
+
+/////////////// InitThreads.init ///////////////
+
+PyEval_InitThreads();
+
/////////////// CodeObjectCache.proto ///////////////
typedef struct {