PyThreadState_SetAsyncExc and native extensions

Discussion in 'Python' started by gabriel.becedillas@gmail.com, Apr 25, 2006.

  1. Guest

    Does anyone know if PyThreadState_SetAsyncExc stops a thread while its
    inside a native extension ?
    I'm trying to stop a testing script that boils down to this:

    while True:
    print "aaa"
    native_extension_call()
    print "bbb"

    Using PyThreadState_SetAsyncExc the module doesn't stop but if I add
    more print statements to increase the chance that
    PyThreadState_SetAsyncExc is called when the module is executing Python
    code, the module stops.
    , Apr 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bob Alistar
    Replies:
    0
    Views:
    467
    Bob Alistar
    Dec 4, 2003
  2. Antoon Pardon
    Replies:
    0
    Views:
    344
    Antoon Pardon
    Mar 15, 2005
  3. Replies:
    0
    Views:
    433
  4. Replies:
    0
    Views:
    565
  5. iwl
    Replies:
    1
    Views:
    313
    Karl H.
    Dec 14, 2006
Loading...

Share This Page