Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67c662 commit 2eff8f4Copy full SHA for 2eff8f4
2 files changed
.stat.json
@@ -1 +1 @@
1
-{"translation": "93.40%", "updated_at": "2024-01-26T08:55:48Z"}
+{"translation": "93.40%", "updated_at": "2024-01-26T09:56:01Z"}
c-api/init.po
@@ -1522,6 +1522,11 @@ msgid ""
1522
"the :c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` "
1523
"macros is acceptable."
1524
msgstr ""
1525
+"确保当前线程已准备好调用 Python C API 而不管 Python 或全局解释器锁的当前状态如何。 只要每次调用都与 "
1526
+":c:func:`PyGILState_Release` 的调用相匹配就可以通过线程调用此函数任意多次。 一般来说,只要线程状态恢复到 "
1527
+"Release() 之前的状态就可以在 :c:func:`PyGILState_Ensure` 和 "
1528
+":c:func:`PyGILState_Release` 调用之间使用其他与线程相关的 API。 例如,可以正常使用 "
1529
+":c:macro:`Py_BEGIN_ALLOW_THREADS` 和 :c:macro:`Py_END_ALLOW_THREADS` 宏。"
1530
1531
#: ../../c-api/init.rst:1123
1532
msgid ""
0 commit comments