コード例 #1
0
ファイル: test_standalone.py プロジェクト: xx312022850/pypy
 def before():
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
コード例 #2
0
ファイル: test_standalone.py プロジェクト: xx312022850/pypy
 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")
コード例 #3
0
ファイル: gil.py プロジェクト: 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)
コード例 #4
0
ファイル: test_standalone.py プロジェクト: ieure/pypy
 def before():
     ll_assert(not ll_thread.acquire_NOAUTO(state.ll_lock, False),
               "lock not held!")
     ll_thread.release_NOAUTO(state.ll_lock)
コード例 #5
0
ファイル: test_standalone.py プロジェクト: ieure/pypy
 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")
コード例 #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)