File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 90.67 %" , "updated_at" : " 2024-01-26T09 :22:22Z " }
1+ {"translation" : " 90.68 %" , "updated_at" : " 2024-01-26T15 :22:14Z " }
Original file line number Diff line number Diff line change @@ -1255,12 +1255,16 @@ msgid ""
12551255"each unique call to :c:func:`PyGILState_Ensure` must save the handle for its"
12561256" call to :c:func:`PyGILState_Release`."
12571257msgstr ""
1258+ "返回值是一个当 :c:func:`PyGILState_Ensure` 被调用时的线程状态的不透明“句柄”,并且必须被传递给 "
1259+ ":c:func:`PyGILState_Release` 以确保 Python 处于相同状态。 虽然允许递归调用,但这些句柄 *不能* 被共享 —— "
1260+ "每次对 :c:func:`PyGILState_Ensure` 的单独调用都必须保存其对 :c:func:`PyGILState_Release` "
1261+ "的调用的句柄。"
12581262
12591263#: ../../c-api/init.rst:934
12601264msgid ""
12611265"When the function returns, the current thread will hold the GIL and be able "
12621266"to call arbitrary Python code. Failure is a fatal error."
1263- msgstr ""
1267+ msgstr "当该函数返回时,当前线程将持有 GIL 并能够调用任意 Python 代码。 执行失败将导致致命级错误。 "
12641268
12651269#: ../../c-api/init.rst:946
12661270msgid ""
@@ -1269,6 +1273,8 @@ msgid ""
12691273":c:func:`PyGILState_Ensure` call (but generally this state will be unknown "
12701274"to the caller, hence the use of the GILState API)."
12711275msgstr ""
1276+ "释放之前获取的任何资源。 在此调用之后,Python 的状态将与其在对相应 :c:func:`PyGILState_Ensure` "
1277+ "调用之前的一样(但是通常此状态对调用方来说将是未知的,对 GILState API 的使用也是如此)。"
12721278
12731279#: ../../c-api/init.rst:951
12741280msgid ""
You can’t perform that action at this time.
0 commit comments