From 4ca6dd275393344b9a27cfb2e5a755a4d74a414f Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 2 Jan 2007 14:31:48 +0000 Subject: add support for python threads (python threads are just running when the mainloop is idle) add ePythonMessagePump class for interthread communication --- lib/python/enigma_python.i | 4 +++- lib/python/python.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/python') diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 2a3b89fd..a1bb5b28 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -41,6 +41,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -151,7 +152,8 @@ typedef long time_t; %immutable eDVBCI_UI::ciStateChanged; %immutable eDVBResourceManager::frontendUseMaskChanged; %immutable eAVSwitch::vcr_sb_notifier; - +%immutable ePythonMessagePump::recv_msg; +%include %include %include %include diff --git a/lib/python/python.cpp b/lib/python/python.cpp index b5a7abbf..5ec07dff 100644 --- a/lib/python/python.cpp +++ b/lib/python/python.cpp @@ -121,7 +121,8 @@ ePython::ePython() // Py_OptimizeFlag = 1; Py_Initialize(); - + PyEval_InitThreads(); + init_enigma(); } -- cgit v1.2.3