diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-02 14:31:48 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-02 14:31:48 +0000 |
| commit | 4ca6dd275393344b9a27cfb2e5a755a4d74a414f (patch) | |
| tree | 18c8ff764744d643c4835dfb14b1f3123be649a8 /lib/python | |
| parent | bfa525d0451df77a28db6ce21ec45f00b89661a8 (diff) | |
| download | enigma2-4ca6dd275393344b9a27cfb2e5a755a4d74a414f.tar.gz enigma2-4ca6dd275393344b9a27cfb2e5a755a4d74a414f.zip | |
add support for python threads (python threads are just running when the mainloop
is idle)
add ePythonMessagePump class for interthread communication
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/enigma_python.i | 4 | ||||
| -rw-r--r-- | lib/python/python.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
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 <lib/base/eerror.h> #include <lib/base/console.h> #include <lib/base/nconfig.h> +#include <lib/base/message.h> #include <lib/driver/rc.h> #include <lib/service/iservice.h> #include <lib/service/service.h> @@ -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 <lib/base/message.h> %include <lib/base/console.h> %include <lib/base/nconfig.h> %include <lib/driver/rc.h> 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(); } |
