aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-01-14 18:39:02 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 20:12:25 -0300
commit57431112269fe3a17e9e68dd08ee8dc65620bca7 (patch)
treef189295e40e6cc39a1e38854ff02b541069ac9d7 /libshiboken
parent992e7170d4254257e4341d82c82aeec981396e2e (diff)
libshiboken initialises Python threads if available.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/basewrapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index afaeb29e2..d51c1bfa2 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -272,6 +272,10 @@ PyAPI_FUNC(void) init_shiboken()
if (shibokenAlreadInitialised)
return;
+#ifdef WITH_THREAD
+ PyEval_InitThreads();
+#endif
+
SbkBaseWrapperType_Type.tp_base = &PyType_Type;
if (PyType_Ready(&SbkBaseWrapperType_Type) < 0)