Problems with thread safety
Sven Rech
svenrech at gmx.de
Sat May 12 21:30:56 EDT 2007
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?
More information about the Python-list
mailing list