@@ -1756,12 +1756,18 @@ msgid ""
17561756":meth:`Condition.acquire` or :meth:`Condition.wait` then the call will be "
17571757"immediately interrupted and :exc:`KeyboardInterrupt` will be raised."
17581758msgstr ""
1759+ "假如信号 SIGINT 是来自于 :kbd:`Ctrl-C` ,并且主线程被 :meth:`BoundedSemaphore.acquire`, "
1760+ ":meth:`Lock.acquire`, :meth:`RLock.acquire`, :meth:`Semaphore.acquire`, "
1761+ ":meth:`Condition.acquire` 或 :meth:`Condition.wait` 阻塞,则调用会立即中断同时抛出 "
1762+ ":exc:`KeyboardInterrupt` 异常。"
17591763
17601764#: ../../library/multiprocessing.rst:1374
17611765msgid ""
17621766"This differs from the behaviour of :mod:`threading` where SIGINT will be "
17631767"ignored while the equivalent blocking calls are in progress."
17641768msgstr ""
1769+ "这和 :mod:`threading` 中的行为有点不同,当对应的阻塞行为发生在进程中时, :mod:`threading` 中 SIGINT "
1770+ "会被忽略。"
17651771
17661772#: ../../library/multiprocessing.rst:1379
17671773msgid ""
@@ -1771,23 +1777,27 @@ msgid ""
17711777"import it will result in an :exc:`ImportError`. See :issue:`3770` for "
17721778"additional information."
17731779msgstr ""
1780+ "这个包的某些功能依赖于宿主机系统的共享信号量的实现,如果系统没有这个特性, :mod:`multiprocessing.synchronize` "
1781+ "会被禁用,尝试导入这个模块会引发 :exc:`ImportError` 异常,详细信息请查看 :issue:`3770` 。"
17741782
17751783#: ../../library/multiprocessing.rst:1387
17761784msgid "Shared :mod:`ctypes` Objects"
1777- msgstr ""
1785+ msgstr "共享 :mod:`ctypes` 对象 "
17781786
17791787#: ../../library/multiprocessing.rst:1389
17801788msgid ""
17811789"It is possible to create shared objects using shared memory which can be "
17821790"inherited by child processes."
1783- msgstr ""
1791+ msgstr "在共享内存上创建可被子进程继承的共享对象时是可行的。 "
17841792
17851793#: ../../library/multiprocessing.rst:1394
17861794msgid ""
17871795"Return a :mod:`ctypes` object allocated from shared memory. By default the "
17881796"return value is actually a synchronized wrapper for the object. The object "
17891797"itself can be accessed via the *value* attribute of a :class:`Value`."
17901798msgstr ""
1799+ "返回一个从共享内存上创建的 :mod:`ctypes` 对象。默认情况下返回的对象实际上是经过了同步器包装过的。可以通过 :class:`Value` "
1800+ "的 *value* 属性访问这个对象本身。"
17911801
17921802#: ../../library/multiprocessing.rst:1398
17931803#: ../../library/multiprocessing.rst:1485
@@ -1797,6 +1807,8 @@ msgid ""
17971807":mod:`array` module. *\\ *args* is passed on to the constructor for the "
17981808"type."
17991809msgstr ""
1810+ "*typecode_or_type* 指明了返回的对象类型: 它可能是一个 ctypes 类型或者 :mod:`array` "
1811+ "模块中每个类型对应的单字符长度的字符串。 *\\ *args* 会透传给这个类的构造函数。"
18001812
18011813#: ../../library/multiprocessing.rst:1402
18021814msgid ""
0 commit comments