Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d21674

Browse files
committed
[po] auto sync bot
1 parent 615d6aa commit 7d21674

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

library/threading.po

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ msgstr ""
598598
msgid ""
599599
"The return value is ``True`` if the lock is acquired successfully, ``False``"
600600
" if not (for example if the *timeout* expired)."
601-
msgstr ""
601+
msgstr "如果成功获得锁,则返回 ``True``,否则返回 ``False``(例如发生 *超时* )"
602602

603603
#: ../../library/threading.rst:400 ../../library/threading.rst:479
604604
#: ../../library/threading.rst:724
@@ -609,7 +609,7 @@ msgstr "新的 *timeout* 形参。"
609609
msgid ""
610610
"Lock acquisition can now be interrupted by signals on POSIX if the "
611611
"underlying threading implementation supports it."
612-
msgstr ""
612+
msgstr "现在如果底层线程实现支持,则可以通过POSIX上的信号中断锁的获取。"
613613

614614
#: ../../library/threading.rst:410
615615
msgid ""
@@ -622,7 +622,7 @@ msgid ""
622622
"When the lock is locked, reset it to unlocked, and return. If any other "
623623
"threads are blocked waiting for the lock to become unlocked, allow exactly "
624624
"one of them to proceed."
625-
msgstr ""
625+
msgstr "当锁被锁定,将它重置为未锁定,并返回。如果其他线程正在等待这个锁解锁而被阻塞,只允许其中一个允许。"
626626

627627
#: ../../library/threading.rst:417
628628
msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
@@ -911,6 +911,8 @@ msgid ""
911911
"which result will be interpreted as a boolean value. A *timeout* may be "
912912
"provided giving the maximum time to wait."
913913
msgstr ""
914+
"等待,直到条件计算为真。 *predicate* 应该是一个可调用对象而且它的返回值可被解释为一个布尔值。可以提供 *timeout* "
915+
"参数给出最大等待时间。"
914916

915917
#: ../../library/threading.rst:625
916918
msgid ""
@@ -924,7 +926,7 @@ msgstr ""
924926
msgid ""
925927
"Ignoring the timeout feature, calling this method is roughly equivalent to "
926928
"writing::"
927-
msgstr ""
929+
msgstr "忽略超时功能,调用此方法大致相当于编写::"
928930

929931
#: ../../library/threading.rst:636
930932
msgid ""
@@ -938,13 +940,13 @@ msgid ""
938940
"By default, wake up one thread waiting on this condition, if any. If the "
939941
"calling thread has not acquired the lock when this method is called, a "
940942
":exc:`RuntimeError` is raised."
941-
msgstr ""
943+
msgstr "默认唤醒一个等待这个条件的线程。如果调用线程在没有获得锁的情况下调用这个方法,会引发 :exc:`RuntimeError` 异常。"
942944

943945
#: ../../library/threading.rst:648
944946
msgid ""
945947
"This method wakes up at most *n* of the threads waiting for the condition "
946948
"variable; it is a no-op if no threads are waiting."
947-
msgstr ""
949+
msgstr "这个方法唤醒最多 *n* 个正在等待这个条件变量的线程;如果没有线程在等待,这是一个空操作。"
948950

949951
#: ../../library/threading.rst:651
950952
msgid ""
@@ -953,13 +955,16 @@ msgid ""
953955
"future, optimized implementation may occasionally wake up more than *n* "
954956
"threads."
955957
msgstr ""
958+
"当前实现中,如果至少有 *n* 个线程正在等待,准确唤醒 *n* 个线程。但是依赖这个行为并不安全。未来,优化的实现有时会唤醒超过 *n* 个线程。"
956959

957960
#: ../../library/threading.rst:656
958961
msgid ""
959962
"Note: an awakened thread does not actually return from its :meth:`wait` call"
960963
" until it can reacquire the lock. Since :meth:`notify` does not release the"
961964
" lock, its caller should."
962965
msgstr ""
966+
"注意:被唤醒的线程实际上不会返回它调用的 :meth:`wait` ,直到它可以重新获得锁。因为 :meth:`notify` "
967+
"不会释放锁,只有它的调用者应该这样做。"
963968

964969
#: ../../library/threading.rst:662
965970
msgid ""

0 commit comments

Comments
 (0)