def before(): ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False), "lock not held!") ll_thread.release_NOAUTO(state.ll_lock)
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")
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)