def after(): rthread.acquire_NOAUTO(state.ll_lock, True) rthread.gc_thread_run()
def after(): debug_print("waiting...") rthread.acquire_NOAUTO(state.ll_lock, True) debug_print("acquired")
def before(): ll_assert(not rthread.acquire_NOAUTO(state.ll_lock, False), "lock not held!") rthread.release_NOAUTO(state.ll_lock)
def before(): debug_print("releasing...") ll_assert(not rthread.acquire_NOAUTO(state.ll_lock, False), "lock not held!") rthread.release_NOAUTO(state.ll_lock) debug_print("released")