Beispiel #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)
Beispiel #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")
Beispiel #3
0
Datei: gil.py Projekt: 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)
Beispiel #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)
Beispiel #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")
Beispiel #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)