Skip to content

Commit 7e9e680

Browse files
Update library/queue.po
Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
1 parent 306bb1a commit 7e9e680

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

library/queue.po

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,19 @@ msgstr ""
357357
"鎖 (deadlock) 或損壞佇列中的內部狀態。這使得它適合在解構子 (destructor) 中使"
358358
"用,像是 ``__del__`` method 或 :mod:`weakref` 回呼函式 (callback)。"
359359

360+
#: ../../library/queue.rst:243
361+
msgid ""
362+
"This method has a C implementation which is reentrant. That is, a ``put()`` "
363+
"or ``get()`` call can be interrupted by another ``put()`` call in the same "
364+
"thread without deadlocking or corrupting internal state inside the queue. "
365+
"This makes it appropriate for use in destructors such as ``__del__`` methods "
366+
"or :mod:`weakref` callbacks."
367+
msgstr ""
368+
"此 method 有一個可重入 (reentrant) 的 C 實作。意思就是,一個 ``put()`` 或 "
369+
"``get()`` 呼叫,可以被同一執行緒中的另一個 ``put()`` 呼叫中斷,而不會造成死"
370+
"鎖 (deadlock) 或損壞佇列中的內部狀態。這使得它適合在解構子 (destructor) 中使"
371+
"用,像是 ``__del__`` method 或 :mod:`weakref` 回呼函式 (callback)。"
372+
360373
#: ../../library/queue.rst:252
361374
msgid ""
362375
"Equivalent to ``put(item, block=False)``, provided for compatibility with :"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy