Problems with thread safety
Hi, In my C program, I want to use python scripts. This scripts should also have the ability to start threads. So at the initilisation phase I do: PyEval_InitThreads(); PyEval_ReleaseLock(); With the second call I want to release lock, for that the python threads can also do their work. But then, when I call a method in a script which starts a thread then, I get the following error: Fatal Python error: PyEval_AcquireThread: non-NULL old thread state Aborted (core dumped) What did I wrong? -- http://mail.python.org/mailman/listinfo/python-list
find out all threads?
Hi, I have a written a C program which makes use of python embedding. I want to find out all threads that a loaded module has started. But I can't find anything about this in the docs. Is it possible? -- http://mail.python.org/mailman/listinfo/python-list
python embedding and threads
Hi, I'm the author of an application written in C, which should now be extended with a python plugin system. It already works very good, but I now have a problem: Threading functionality within the python modules, that my C app loads and calls, doesn't work. This means, the threads do not run (the same python code works correct if I just start it with the normal python interpreter). Is there something I must be aware of, if I want to use (python) threads with embedded python? (for example call a special function or something like that) Bye -- http://mail.python.org/mailman/listinfo/python-list