| Reply | « Previous Thread | Next Thread » |
|
Hi,
Implementing C++ extension that makes callbacks to a function in a python module. In pys60 1.4.5 with S60 3rd FP1 these thread-state functions around the callback seem to work with no problem: Code:
PyEval_RestoreThread( PYTHON_TLS->thread_state ); ... PyEval_SaveThread(); Have the PyEval_RestoreThread and/or PyEval_SaveThread functions changed between 1.4.5. and 1.9.2 (or python 2.2 and 2.5 respectively)? Any workarounds? |
|
Try this:
Code:
Py_Initialize(); PyEval_InitThreads(); ... Py_Finalize(); |
|
Quote:
PyEval_RestoreThread( PYTHON_TLS->thread_state ) --> PyGILState_STATE gstate = PyGILState_Ensure(); PyEval_SaveThread() --> PyGILState_Release(gstate); import antigravity |
| ashwinurao |
| View Public Profile |
| Find all posts by ashwinurao |
|
Quote:
======= Mahesh PyS60 Team |
| mahesh.sayibabu |
| View Public Profile |
| Find all posts by mahesh.sayibabu |
|
Thanks for good&quick answers, problems solved so far
![]() |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Recording in Amr Format | losym | Symbian Media (Graphics & Sounds) | 12 | 2009-03-26 07:41 |
| Python for S60 1.9.2 released | tvijayan | Python | 26 | 2009-03-11 10:28 |
| WAP extension for Dreamweaver | RichardGalbraith | General Browsing | 2 | 2009-01-13 04:21 |
| KERN-EXEC 3 Panic/OK for the same call | PACALA_BA | General Symbian C++ | 7 | 2009-01-04 17:48 |
| what 's mean of Extension_() in CSession Class | yinquan | General Symbian C++ | 7 | 2008-08-12 17:52 |