468,317 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,317 developers. It's quick & easy.

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?

May 13 '07 #1
0 853

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by phpnube | last post: by
9 posts views Thread by Alexander Fleck | last post: by
22 posts views Thread by Brett | last post: by
2 posts views Thread by news | last post: by
4 posts views Thread by Warren Sirota | last post: by
6 posts views Thread by fniles | last post: by
13 posts views Thread by arun.darra | last post: by
reply views Thread by Graham Wideman | last post: by
4 posts views Thread by mechphisto | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.