Hello,<br><br>I want to embed Python in an application and use an API of the application from Python.<br>The application uses a library that creates several threads and I the users of the application will write Python scripts handling this events.
<br><br>The problem is that I having problems with threads. I saw that I have to PyEval_InitThreads and then PyThreadState_New and PyThreadState_Swap from the new thread but this way to solve the problem doesn't work for me because I need to let 2 or more threads run at the SAME time.
<br>The interpreter lock doesn't let them run at the same time so I'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.<br><br>Can anyone help me to solve this issue or tell me 'Forget it!'?
<br><br><br>Thanks on advance,<br>Pablo Yabo<br>