Example #1
0
 def before():
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
Example #2
0
 def before():
     debug_print("releasing...")
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
     debug_print("released")
Example #3
0
File: gil.py Project: ieure/pypy
def before_external_call():
    # this function must not raise, in such a way that the exception
    # transformer knows that it cannot raise!
    e = get_errno()
    thread.release_NOAUTO(spacestate.ll_GIL)
    set_errno(e)
Example #4
0
 def before():
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
Example #5
0
 def before():
     debug_print("releasing...")
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
     debug_print("released")
Example #6
0
def before_external_call():
    # this function must not raise, in such a way that the exception
    # transformer knows that it cannot raise!
    e = get_errno()
    thread.release_NOAUTO(spacestate.ll_GIL)
    set_errno(e)