Thread structures BUG?

2007-11-03 Thread Pablo Yabo
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

Re: C++ Binding with Threads

2007-08-28 Thread Pablo Yabo
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

C++ Binding with Threads

2007-08-13 Thread Pablo Yabo
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

C++ Binding with Threads

2007-08-13 Thread Pablo Yabo
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

Threading

2007-08-10 Thread Pablo Yabo
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