@@ -3938,39 +3938,39 @@ msgstr "锁已被成功获取。"
39383938
39393939#: ../../c-api/init.rst:2744
39403940msgid "The lock was interrupted by a signal."
3941- msgstr ""
3941+ msgstr "锁被一个信号中断。 "
39423942
39433943#: ../../c-api/init.rst:2749
39443944msgid "Allocate a new lock."
3945- msgstr ""
3945+ msgstr "分配一个新锁。 "
39463946
39473947#: ../../c-api/init.rst:2751
39483948msgid ""
39493949"On success, this function returns a lock; on failure, this function returns "
39503950"``0`` without an exception set."
3951- msgstr ""
3951+ msgstr "成功时,此函数将返回一个锁;失败时,此函数将返回 ``0`` 且不设置异常。 "
39523952
39533953#: ../../c-api/init.rst:2754 ../../c-api/init.rst:2766
39543954#: ../../c-api/init.rst:2786 ../../c-api/init.rst:2804
39553955#: ../../c-api/init.rst:2812 ../../c-api/init.rst:2835
39563956#: ../../c-api/init.rst:2919 ../../c-api/init.rst:2927
39573957msgid "The caller does not need to hold an :term:`attached thread state`."
3958- msgstr ""
3958+ msgstr "调用方不需要持有 :term:`attached thread state`。 "
39593959
39603960#: ../../c-api/init.rst:2756
39613961msgid ""
39623962"This function now always uses :c:type:`PyMutex`. In prior versions, this "
39633963"would use a lock provided by the operating system."
3964- msgstr ""
3964+ msgstr "此函数现在总是会使用 :c:type:`PyMutex`。 在之前版本中,它是使用由操作系统提供的锁。 "
39653965
39663966#: ../../c-api/init.rst:2763
39673967msgid ""
39683968"Destroy *lock*. The lock should not be held by any thread when calling this."
3969- msgstr ""
3969+ msgstr "销毁 *lock*。 在调用此函数时该锁不应被任何线程持有。 "
39703970
39713971#: ../../c-api/init.rst:2771
39723972msgid "Acquire *lock* with a timeout."
3973- msgstr ""
3973+ msgstr "获取 *lock* 并附带超时控制。 "
39743974
39753975#: ../../c-api/init.rst:2773
39763976msgid ""
@@ -3979,6 +3979,8 @@ msgid ""
39793979"*microseconds* is ``-1``, this will wait indefinitely until the lock has "
39803980"been released."
39813981msgstr ""
3982+ "此函数将等待 *microseconds* 微秒以获取锁。 如果达到超时限制,此函数将返回 "
3983+ ":c:enumerator:`PY_LOCK_FAILURE`。 如果 *microseconds* 为 ``-1``,它将无限等待直到锁被释放。"
39823984
39833985#: ../../c-api/init.rst:2778
39843986msgid ""
@@ -4150,12 +4152,13 @@ msgid ""
41504152"``-2`` if the system does not support changing the stack size. This function"
41514153" does not set exceptions."
41524154msgstr ""
4155+ "此函数成功时返回 ``0``,如果 *size* 无效则返回 ``-1``,或者如果系统不支持修改栈大小则返回 ``-2``。 此函数不会设置异常。"
41534156
41544157#: ../../c-api/init.rst:2924
41554158msgid ""
41564159"Return the stack size of the current thread in bytes, or ``0`` if the "
41574160"system's default stack size is in use."
4158- msgstr ""
4161+ msgstr "返回以字节为单位的当前线程栈大小,或者如果是使用系统的默认栈大小则返回 ``0``。 "
41594162
41604163#: ../../c-api/init.rst:350
41614164msgid "PyEval_InitThreads()"
0 commit comments