@@ -1462,6 +1462,8 @@ msgid ""
14621462"``NULL``). If the lock has been created, the current thread must have "
14631463"acquired it."
14641464msgstr ""
1465+ "释放全局解释器锁 (如果已创建) 并将线程状态重置为 ``NULL``,返回之前的线程状态 (不为 ``NULL``)。 "
1466+ "如果锁已被创建,则当前线程必须已获取到它。"
14651467
14661468#: ../../c-api/init.rst:1082
14671469msgid ""
@@ -1470,6 +1472,8 @@ msgid ""
14701472"created, the current thread must not have acquired it, otherwise deadlock "
14711473"ensues."
14721474msgstr ""
1475+ "获取全局解释器锁 (如果已创建) 并将线程状态设为 *tstate*,它必须不为 ``NULL``。 "
1476+ "如果锁已被创建,则当前线程必须尚未获取它,否则将发生死锁。"
14731477
14741478#: ../../c-api/init.rst:1088 ../../c-api/init.rst:1134
14751479#: ../../c-api/init.rst:1416
@@ -1480,13 +1484,18 @@ msgid ""
14801484" interpreter is in process of being finalized before calling this function "
14811485"to avoid unwanted termination."
14821486msgstr ""
1487+ "当运行时正在最终化时从某个线程调用此函数将终结该线程,即使线程不是由 Python 创建的。 你可以在调用此函数之前使用 "
1488+ ":c:func:`!_Py_IsFinalizing` 或 :func:`sys.is_finalizing` "
1489+ "来检查解释器是否还处于最终化过程中以避免不必要的终结。"
14831490
14841491#: ../../c-api/init.rst:1096
14851492msgid ""
14861493"Return the current thread state. The global interpreter lock must be held. "
14871494"When the current thread state is ``NULL``, this issues a fatal error (so "
14881495"that the caller needn't check for ``NULL``)."
14891496msgstr ""
1497+ "返回当前线程状态。 全局解释器锁必须被持有。 在当前状态为 ``NULL`` 时,这将发出一个致命错误 (这样调用方将无须检查是否为 "
1498+ "``NULL``)。"
14901499
14911500#: ../../c-api/init.rst:1103
14921501msgid ""
0 commit comments