ThisThreadState(). If it returns something I
reuse the structure.
In this way, my code works.
Thanks,
Pablo Yabo
--
http://www.nektra.com
--
http://mail.python.org/mailman/listinfo/python-list
PyEval_AcquireLock();
PyThreadState_Swap(_state);
}
Pablo Yabo
--
http://www.nektra.com
On 8/13/07, Pablo Yabo <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I want to embed Python in an application and use an API of the application
> from Python.
> The application uses a library th
7;m looking
for another solution. I saw Py_NewInterpreter and I tried to use it but it
doesn't work if I don't keep the lock.
Can anyone help me to solve this issue or tell me 'Forget it!'?
Thanks on advance,
Pablo Yabo
--
http://www.nektra.com
--
http://mail.python.org/mailman/listinfo/python-list
7;m looking
for another solution. I saw Py_NewInterpreter and I tried to use it but it
doesn't work if I don't keep the lock.
Can anyone help me to solve this issue or tell me 'Forget it!'?
Thanks on advance,
Pablo Yabo
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to
call Python routines from C/C++. These routines must intereact in a
multi-thread environment.
I mean that routine A will loop waiting for a condition of routine B.
This condition are coded in C so I don't need
routine A running in the same interpreter of routine B.
I tried u