コード例 #1
0
ファイル: gil.py プロジェクト: Debug-Orz/Sypy
def do_yield_thread():
    # explicitly release the gil, in a way that tries to give more
    # priority to other threads (as opposed to continuing to run in
    # the same thread).
    if thread.gil_yield_thread():
        thread.gc_thread_run()
        spacestate.after_thread_switch()
コード例 #2
0
ファイル: gil.py プロジェクト: nipengadmaster/pypy
def do_yield_thread():
    # explicitly release the gil, in a way that tries to give more
    # priority to other threads (as opposed to continuing to run in
    # the same thread).
    if thread.gil_yield_thread():
        thread.gc_thread_run()
        spacestate.after_thread_switch()
コード例 #3
0
ファイル: gil.py プロジェクト: ieure/pypy
def after_external_call():
    e = get_errno()
    thread.acquire_NOAUTO(spacestate.ll_GIL, True)
    thread.gc_thread_run()
    spacestate.after_thread_switch()
    set_errno(e)
コード例 #4
0
ファイル: test_standalone.py プロジェクト: ieure/pypy
 def after():
     ll_thread.acquire_NOAUTO(state.ll_lock, True)
     ll_thread.gc_thread_run()
コード例 #5
0
ファイル: test_standalone.py プロジェクト: njues/Sypy
 def after():
     ll_thread.acquire_NOAUTO(state.ll_lock, True)
     ll_thread.gc_thread_run()
コード例 #6
0
ファイル: gil.py プロジェクト: Debug-Orz/Sypy
def after_external_call():
    e = get_errno()
    thread.gil_acquire()
    thread.gc_thread_run()
    spacestate.after_thread_switch()
    set_errno(e)
コード例 #7
0
ファイル: gil.py プロジェクト: nipengadmaster/pypy
def after_external_call():
    e = get_errno()
    thread.gil_acquire()
    thread.gc_thread_run()
    spacestate.after_thread_switch()
    set_errno(e)
コード例 #8
0
def after_external_call():
    e = get_errno()
    thread.acquire_NOAUTO(spacestate.ll_GIL, True)
    thread.gc_thread_run()
    spacestate.after_thread_switch()
    set_errno(e)