Exemplo n.º 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)
Exemplo n.º 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")
Exemplo n.º 3
0
Arquivo: gil.py Projeto: 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)
Exemplo n.º 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)
Exemplo n.º 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")
Exemplo n.º 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)