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. Advertisements

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:
    534
    Bob Alistar
    Dec 4, 2003
  2. Antoon Pardon
    Replies:
    0
    Views:
    435
    Antoon Pardon
    Mar 15, 2005
  3. Replies:
    0
    Views:
    643
  4. Replies:
    0
    Views:
    643
  5. iwl
    Replies:
    1
    Views:
    433
    Karl H.
    Dec 14, 2006
  6. Jonathan Métillon
    Replies:
    1
    Views:
    216
    Jonathan Métillon
    Nov 11, 2006
  7. Peter Seebach

    DBI, native extensions, etcetera.

    Peter Seebach, May 1, 2007, in forum: Ruby
    Replies:
    0
    Views:
    178
    Peter Seebach
    May 1, 2007
  8. Vaggelis Typaldos

    ffi-0.3.2 # Fails to build native extensions

    Vaggelis Typaldos, Mar 28, 2009, in forum: Ruby
    Replies:
    1
    Views:
    184
    Andrea Fazzi
    Mar 28, 2009
Loading...