Results of 1 - 2 of about 2 for PyCriticalSection (0.003 sec.)
- 同期プリミティブ 11228
- 同期プリミティブ C API は基本的な相互排他ロックを提供します。 type PyMutex 相互排他ロックです。 PyMutex は、ロックされていない状態を表すために 0 で初期化する必要があります。 例えば次のようにします。 PyMutex mutex = { 0 }; PyMutex のインスタ
...op のロックを取得し、クリティカルセクションを開始します。 フリースレッドビルドでは、このマクロは次のように展開されます。 { PyCriticalSection _py_cs ; PyCriticalSection_Begin ( & _py_cs , ( PyObject * )( op )) デフォルトのビルドでは、このマクロは { に展開されます。...テックス m をロックし、クリティカルセクションを開始します。 フリースレッドビルドでは、このマクロは次のように展開されます。 { PyCriticalSection _py_cs ; PyCriticalSection_BeginMutex ( & _py_cs , m ) Py_BEGIN_CRITICAL_SECTION と異なり、このマクロは引数をキャストしませ...ィカルセクションを終了し、オブジェクトのロックを解放します。 フリースレッドビルドでは、このマクロは次のように展開されます。 PyCriticalSection_End ( & _py_cs ); } デフォルトのビルドでは、このマクロは } に展開されます。 Added in version 3.13. Py_BEGIN_CRITICAL_SECTI... - https://man.mtool.work/python/3.14/c-api/synchronization.html
- 変更履歴 7485
- 変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T
...no memory left on a device, which happened in _interpchannels module. Now it raises proper MemoryError errors. gh-150902 : PyCriticalSection (単一のミューテックス) の既存の最適化を PyCriticalSection2 にも適用しました。 現在のクリティカルセクションが既に取得してい... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
PREV
1
NEXT