Results of 1 - 10 of about 58 for acquire (0.008 sec.)
- threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 12690
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード
...with POSIX threads support. このモジュールでは以下の定数も定義しています: threading. TIMEOUT_MAX ¶ ブロックする関数 ( Lock.acquire() , RLock.acquire() , Condition.wait() など) の timeout 引数に許される最大値。これ以上の値を timeout に指定すると Overflow...の状態、 "ロック" または "アンロック" があります。ロックはアンロック状態で作成されます。ロックには基本となる二つのメソッド、 acquire() と release() があります。ロックの状態がアンロックである場合、 acquire() は状態をロックに変更して即座に処理を戻します。 状...態がロックの場合、 acquire() は他のスレッドが release() を呼び出してロックの状態をアンロックに変更するまでブロックします。その後、 acquire() 呼び出し... - https://man.mtool.work/python/3.14/library/threading.html
- threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 12690
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード
...with POSIX threads support. このモジュールでは以下の定数も定義しています: threading. TIMEOUT_MAX ¶ ブロックする関数 ( Lock.acquire() , RLock.acquire() , Condition.wait() など) の timeout 引数に許される最大値。これ以上の値を timeout に指定すると Overflow...の状態、 "ロック" または "アンロック" があります。ロックはアンロック状態で作成されます。ロックには基本となる二つのメソッド、 acquire() と release() があります。ロックの状態がアンロックである場合、 acquire() は状態をロックに変更して即座に処理を戻します。 状...態がロックの場合、 acquire() は他のスレッドが release() を呼び出してロックの状態をアンロックに変更するまでブロックします。その後、 acquire() 呼び出し... - https://man.mtool.work/python/3.14/library/threading.html
- 同期プリミティブ — Python 3.14.8 ドキュメント 10802
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶
...eady use critical sections internally, with the notable exception of PyDict_Next() , which requires critical section to be acquired externally. Critical sections avoid deadlocks by implicitly suspending active critical sections, hence, they do not provi...as provided by traditional locks like PyMutex . When a critical section is started, the per-object lock for the object is acquired. If the code executed inside the critical section calls C-API functions then it can suspend the critical section thereby...releasing the per-object lock, so other threads can acquire the per-object lock for the same object. Variants that accept PyMutex pointers rather than Python objects are also availab... - https://man.mtool.work/python/3.14/c-api/synchronization.html
- 同期プリミティブ — Python 3.14.8 ドキュメント 10363
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶
...eady use critical sections internally, with the notable exception of PyDict_Next() , which requires critical section to be acquired externally. Critical sections avoid deadlocks by implicitly suspending active critical sections, hence, they do not provi...as provided by traditional locks like PyMutex . When a critical section is started, the per-object lock for the object is acquired. If the code executed inside the critical section calls C-API functions then it can suspend the critical section thereby...releasing the per-object lock, so other threads can acquire the per-object lock for the same object. Variants that accept PyMutex pointers rather than Python objects are also availab... - https://man.mtool.work/python/3.14/c-api/synchronization.html
- 同期プリミティブ — Python 3.14.8 ドキュメント 9938
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ
...er async with lock : # access shared state これは以下のコードと等価です: lock = asyncio . Lock () # ... later await lock . acquire () try : # access shared state finally : lock . release () バージョン 3.10 で変更: loop パラメータが削除されました。 async...acquire ( ) ¶ ロックを獲得します。 このメソッドはロックが 解除される まで待機し、ロックを ロック状態 に変更して True を返します。...複数のコルーチンが acquire() メソッドによりロックの解除を待ち受けている場合、最終的にただひとつのコルーチンが実行されます。 ロックの獲得は 公平 です:... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- 同期プリミティブ — Python 3.14.8 ドキュメント 9938
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ
...er async with lock : # access shared state これは以下のコードと等価です: lock = asyncio . Lock () # ... later await lock . acquire () try : # access shared state finally : lock . release () バージョン 3.10 で変更: loop パラメータが削除されました。 async...acquire ( ) ¶ ロックを獲得します。 このメソッドはロックが 解除される まで待機し、ロックを ロック状態 に変更して True を返します。...複数のコルーチンが acquire() メソッドによりロックの解除を待ち受けている場合、最終的にただひとつのコルーチンが実行されます。 ロックの獲得は 公平 です:... - https://man.mtool.work/python/3.14/library/asyncio-sync.html
- Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 9162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶
...7fffefa18710 (LWP 10260)): #5 Frame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x85877...0>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140737213728528), count=1, owner=140737213728528) self.__block.acquire() #8 Frame 0x7fffac001640, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_C...alse, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remot... - https://man.mtool.work/python/3.14/howto/gdb_helpers.html
- Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 9162
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶
...7fffefa18710 (LWP 10260)): #5 Frame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x85877...0>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140737213728528), count=1, owner=140737213728528) self.__block.acquire() #8 Frame 0x7fffac001640, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_C...alse, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remot... - https://man.mtool.work/python/3.14/howto/gdb_helpers.html
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8050
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...that only one process prints to standard output at a time: from multiprocessing import Process , Lock def f ( l , i ): l . acquire () try : print ( 'hello world' , i ) finally : l . release () if __name__ == '__main__' : lock = Lock () for num in range...start method. See Global start method for more details. よく似た threading.BoundedSemaphore とは、次の一点だけ異なります。 acquire メソッドの第一引数名は block で、 Lock.acquire() と一致しています。 locked ( ) ¶ Return a boolean indicating whether this...ocessing. Lock ¶ 再帰しないロックオブジェクトで、 threading.Lock 相当のものです。プロセスやスレッドがロックをいったん獲得 (acquire) すると、それに続くほかのプロセスやスレッドが獲得しようとする際、それが解放 (release) されるまではブロックされます。解放は... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8050
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...that only one process prints to standard output at a time: from multiprocessing import Process , Lock def f ( l , i ): l . acquire () try : print ( 'hello world' , i ) finally : l . release () if __name__ == '__main__' : lock = Lock () for num in range...start method. See Global start method for more details. よく似た threading.BoundedSemaphore とは、次の一点だけ異なります。 acquire メソッドの第一引数名は block で、 Lock.acquire() と一致しています。 locked ( ) ¶ Return a boolean indicating whether this...ocessing. Lock ¶ 再帰しないロックオブジェクトで、 threading.Lock 相当のものです。プロセスやスレッドがロックをいったん獲得 (acquire) すると、それに続くほかのプロセスやスレッドが獲得しようとする際、それが解放 (release) されるまではブロックされます。解放は... - https://man.mtool.work/python/3.14/library/multiprocessing.html