File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 90.03%" , "updated_at" : " 2024-01-26T07:08:52Z " }
1
+ {"translation" : " 90.03%" , "updated_at" : " 2024-01-26T09:09:34Z " }
Original file line number Diff line number Diff line change @@ -1214,7 +1214,7 @@ msgstr "交换当前线程状态与由参数 *tstate* (可能为 ``NULL``) 给
1214
1214
msgid ""
1215
1215
"The following functions use thread-local storage, and are not compatible "
1216
1216
"with sub-interpreters:"
1217
- msgstr ""
1217
+ msgstr "下列函数使用线程级本地存储,并且不能兼容子解释器: "
1218
1218
1219
1219
#: ../../c-api/init.rst:913
1220
1220
msgid ""
@@ -1228,6 +1228,11 @@ msgid ""
1228
1228
"the :c:macro:`Py_BEGIN_ALLOW_THREADS` and :c:macro:`Py_END_ALLOW_THREADS` "
1229
1229
"macros is acceptable."
1230
1230
msgstr ""
1231
+ "确保当前线程已准备好调用 Python C API 而不管 Python 或全局解释器锁的当前状态如何。 只要每次调用都与 "
1232
+ ":c:func:`PyGILState_Release` 的调用相匹配就可以通过线程调用此函数任意多次。 一般来说,只要线程状态恢复到 "
1233
+ "Release() 之前的状态就可以在 :c:func:`PyGILState_Ensure` 和 "
1234
+ ":c:func:`PyGILState_Release` 调用之间使用其他与线程相关的 API。 例如,可以正常使用 "
1235
+ ":c:macro:`Py_BEGIN_ALLOW_THREADS` 和 :c:macro:`Py_END_ALLOW_THREADS` 宏。"
1231
1236
1232
1237
#: ../../c-api/init.rst:923
1233
1238
msgid ""
You can’t perform that action at this time.
0 commit comments