per page, with , order by , clip by
Results of 1 - 10 of about 82 for hold (0.004 sec.)
Thread Safety Guarantees — Python 3.14.8 ドキュメント 12437
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui ... at is safe to call from multiple threads provided the caller supplies appropriate external synchronization, for example by holding a lock for the duration of each call. Without such synchronization, concurrent calls may produce race conditions or dat ... the above operations avoid acquiring per-object locks . They do not block concurrent modifications. Other operations that hold a lock will not block these from observing intermediate states. All other operations from here on block using the per-obje ... titem__ d . get ( key ) # dict.get key in d # dict.__contains__ len ( d ) # dict.__len__ All other operations from here on hold the per-object lock . Writing or removing a single item is safe to call from multiple threads and will not corrupt the dic ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
Thread Safety Guarantees — Python 3.14.8 ドキュメント 12437
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui ... at is safe to call from multiple threads provided the caller supplies appropriate external synchronization, for example by holding a lock for the duration of each call. Without such synchronization, concurrent calls may produce race conditions or dat ... the above operations avoid acquiring per-object locks . They do not block concurrent modifications. Other operations that hold a lock will not block these from observing intermediate states. All other operations from here on block using the per-obje ... titem__ d . get ( key ) # dict.get key in d # dict.__contains__ len ( d ) # dict.__len__ All other operations from here on hold the per-object lock . Writing or removing a single item is safe to call from multiple threads and will not corrupt the dic ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
同期プリミティブ — Python 3.14.8 ドキュメント 10448
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... s, this function returns a lock; on failure, this function returns 0 without an exception set. The caller does not need to hold an attached thread state . void PyThread_free_lock ( PyThread_type_lock lock ) ¶ 次に属します: Stable ABI . Destroy lock . ... The lock should not be held by any thread when calling this. The caller does not need to hold an attached thread state . PyLockStatus PyThread_acquire_lock_timed ( PyThread_type_lock lock , long long microseconds , i ... to Python code. If the lock is successfully acquired, this function returns PY_LOCK_ACQUIRED . The caller does not need to hold an attached thread state . int PyThread_acquire_lock ( PyThread_type_lock lock , int waitflag ) ¶ 次に属します: Stable ABI ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
同期プリミティブ — Python 3.14.8 ドキュメント 10448
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... s, this function returns a lock; on failure, this function returns 0 without an exception set. The caller does not need to hold an attached thread state . void PyThread_free_lock ( PyThread_type_lock lock ) ¶ 次に属します: Stable ABI . Destroy lock . ... The lock should not be held by any thread when calling this. The caller does not need to hold an attached thread state . PyLockStatus PyThread_acquire_lock_timed ( PyThread_type_lock lock , long long microseconds , i ... to Python code. If the lock is successfully acquired, this function returns PY_LOCK_ACQUIRED . The caller does not need to hold an attached thread state . int PyThread_acquire_lock ( PyThread_type_lock lock , int waitflag ) ¶ 次に属します: Stable ABI ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 10094
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Thread states and the global interpreter lock テーマ 自動 ライト ダーク | Thread states and the global interpreter lock ¶ Unless ... he same object, the reference count could end up being incremented only once instead of twice. As such, only a thread that holds the GIL may operate on Python objects or invoke Python's C API. In order to emulate concurrency, the interpreter regularl ... ttached . A thread can only have one attached thread state at a time. An attached thread state is typically analogous with holding the GIL, except on free-threaded builds. On builds with the GIL enabled, attaching a thread state will block until the ... en a thread is created from native code (for example, by a third-party library with its own thread management), it doesn't hold an attached thread state. If you need to call Python code from these threads (often this will be part of a callback API pr ...
https://man.mtool.work/python/3.14/c-api/threads.html
Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 10094
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Thread states and the global interpreter lock テーマ 自動 ライト ダーク | Thread states and the global interpreter lock ¶ Unless ... he same object, the reference count could end up being incremented only once instead of twice. As such, only a thread that holds the GIL may operate on Python objects or invoke Python's C API. In order to emulate concurrency, the interpreter regularl ... ttached . A thread can only have one attached thread state at a time. An attached thread state is typically analogous with holding the GIL, except on free-threaded builds. On builds with the GIL enabled, attaching a thread state will block until the ... en a thread is created from native code (for example, by a third-party library with its own thread management), it doesn't hold an attached thread state. If you need to call Python code from these threads (often this will be part of a callback API pr ...
https://man.mtool.work/python/3.14/c-api/threads.html
データ型 — Python 3.14.8 ドキュメント 9549
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 テーマ 自動 ライト ダーク | データ型 ¶ この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキュー、両端キュ ... o provides some built-in data types, in particular, dict , list , set and frozenset , and tuple . The str class is used to hold Unicode strings, and the bytes and bytearray classes are used to hold binary data. この章では以下のモジュールが記述されてい ... 連キーワード objects Examples usage サポート レシピ types datetime time configuration 抽象 基底 日付 時間 キュー 列挙型 used hold 基本的 naive timedelta date strftime strptime ZoneInfo collections 前のトピックへ codecs --- codec レジストリと基底クラス ...
https://man.mtool.work/python/3.14/library/datatypes.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 8296
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... C code, storing it in __dict__ only is a good idea. If the module state includes PyObject pointers, the module object must hold references to those objects and implement the module-level hooks m_traverse , m_clear and m_free . These work like tp_trav ... ess from C) and the module's __dict__ (for access from Python code). Garbage-Collection Protocol ¶ Instances of heap types hold a reference to their type. This ensures that the type isn't destroyed before all its instances are, but may result in refe ... module object is garbage-collected, its module state is freed. For each pointer to (a part of) the module state, you must hold a reference to the module object. Usually this is not an issue, because types created with PyType_FromModuleAndSpec() , an ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
データ型 — Python 3.14.8 ドキュメント 8296
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 テーマ 自動 ライト ダーク | データ型 ¶ この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキュー、両端キュ ... o provides some built-in data types, in particular, dict , list , set and frozenset , and tuple . The str class is used to hold Unicode strings, and the bytes and bytearray classes are used to hold binary data. この章では以下のモジュールが記述されてい ...
https://man.mtool.work/python/3.14/library/datatypes.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 8296
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... C code, storing it in __dict__ only is a good idea. If the module state includes PyObject pointers, the module object must hold references to those objects and implement the module-level hooks m_traverse , m_clear and m_free . These work like tp_trav ... ess from C) and the module's __dict__ (for access from Python code). Garbage-Collection Protocol ¶ Instances of heap types hold a reference to their type. This ensures that the type isn't destroyed before all its instances are, but may result in refe ... module object is garbage-collected, its module state is freed. For each pointer to (a part of) the module state, you must hold a reference to the module object. Usually this is not an issue, because types created with PyType_FromModuleAndSpec() , an ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
PREV 1 2 3 4 5 6 7 8 9 NEXT