@@ -4101,29 +4101,29 @@ msgstr "该宏将在系统支持原生线程 ID ��被定义。"
41014101msgid ""
41024102"Get the native identifier of the current thread as it was assigned by the "
41034103"operating system's kernel, which will never be less than zero."
4104- msgstr ""
4104+ msgstr "获取当前线程由操作系统的内核所分配的原生标识号,它绝对不会小于零。 "
41054105
41064106#: ../../c-api/init.rst:2871
41074107msgid ""
41084108"This function is only available when :c:macro:`PY_HAVE_THREAD_NATIVE_ID` is "
41094109"defined."
4110- msgstr ""
4110+ msgstr "此函数仅在定义了 :c:macro:`PY_HAVE_THREAD_NATIVE_ID` 时可用。 "
41114111
41124112#: ../../c-api/init.rst:2878
41134113msgid ":py:func:`threading.get_native_id`"
4114- msgstr ""
4114+ msgstr ":py:func:`threading.get_native_id` "
41154115
41164116#: ../../c-api/init.rst:2883
41174117msgid ""
41184118"Terminate the current thread. This function is generally considered unsafe "
41194119"and should be avoided. It is kept solely for backwards compatibility."
4120- msgstr ""
4120+ msgstr "终结当前线程。 此函数通常被视为是不安全的并应避免使用。 它只是为了向下兼容而被保留。 "
41214121
41224122#: ../../c-api/init.rst:2886
41234123msgid ""
41244124"This function is only safe to call if all functions in the full call stack "
41254125"are written to safely allow it."
4126- msgstr ""
4126+ msgstr "此函数仅在整个调用栈中的所有函数都被编写为能够安全地支持它时才能被安全地调用。 "
41274127
41284128#: ../../c-api/init.rst:2891
41294129msgid ""
@@ -4133,26 +4133,28 @@ msgid ""
41334133"``noexcept`` function is reached, it may terminate the process. Other "
41344134"systems, such as macOS, do unwinding."
41354135msgstr ""
4136+ "如果当前系统使用 POSIX 线程(或称“p线程”),此函数将调用 :manpage:`pthread_exit(3)`,它会尝试展开栈并在某些 "
4137+ "libc 实现上调用 C++析构器,如果抵达一个 ``noexcept`` 函数,它可能会终结进程。 在其他系统,如 macOS 上,只执行展开。"
41364138
41374139#: ../../c-api/init.rst:2897
41384140msgid ""
41394141"On Windows, this function calls ``_endthreadex()``, which kills the thread "
41404142"without calling C++ destructors."
4141- msgstr ""
4143+ msgstr "在 Windows 上,此函数将调用 ``_endthreadex()``,它将杀掉线程而不调用 C++ 析构器。 "
41424144
41434145#: ../../c-api/init.rst:2900
41444146msgid "In any case, there is a risk of corruption on the thread's stack."
4145- msgstr ""
4147+ msgstr "在任何情况下,都存在线程栈损坏的风险。 "
41464148
41474149#: ../../c-api/init.rst:2907
41484150msgid ""
41494151"Initialize ``PyThread*`` APIs. Python executes this function automatically, "
41504152"so there's little need to call it from an extension module."
4151- msgstr ""
4153+ msgstr "初始化 ``PyThread*`` API。 Python 会自动执行此函数,因此很少需要从扩展模块调用它。 "
41524154
41534155#: ../../c-api/init.rst:2913
41544156msgid "Set the stack size of the current thread to *size* bytes."
4155- msgstr ""
4157+ msgstr "将当前线程的栈大小设为 *size* 个字节。 "
41564158
41574159#: ../../c-api/init.rst:2915
41584160msgid ""
0 commit comments