Embedding threaded Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ricardo

    #1

    Embedding threaded Python

    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_InitThre ads() ? - or do you only need
    to do that if the C code is threaded ?
  • Tom Cocagne

    #2
    Re: Embedding threaded Python

    You only need to call PyEval_InitThre ads() for multithreaded C-code. The
    Python threads operate on a different principle.

    Tom

    Ricardo wrote:
    [color=blue]
    > 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_InitThre ads() ? - or do you only need
    > to do that if the C code is threaded ?[/color]

    Comment

    Working...