By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,711 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Embedding threaded Python

P: n/a
If I embed Python in a C app and the Python code is threaded, but the C
code isn't, do I need to call PyEval_InitThreads() ? - or do you only need
to do that if the C code is threaded ?
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You only need to call PyEval_InitThreads() for multithreaded C-code. The
Python threads operate on a different principle.

Tom

Ricardo wrote:
If I embed Python in a C app and the Python code is threaded, but the C
code isn't, do I need to call PyEval_InitThreads() ? - or do you only need
to do that if the C code is threaded ?


Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.