@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version :Python 3.14\n "
1313"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2025-11-25 14:15+0000\n "
14+ "POT-Creation-Date :2025-11-27 14:15+0000\n "
1515"PO-Revision-Date :2025-09-16 00:00+0000\n "
1616"Last-Translator :python-doc bot, 2025\n "
1717"Language-Team :Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -3607,6 +3607,257 @@ msgid ""
36073607"}"
36083608msgstr ""
36093609
3610+ #: ../../c-api/init.rst:2714
3611+ msgid "Legacy Locking APIs"
3612+ msgstr ""
3613+
3614+ #: ../../c-api/init.rst:2716
3615+ msgid ""
3616+ "These APIs are obsolete since Python 3.13 with the introduction of :c:type:"
3617+ "`PyMutex`."
3618+ msgstr ""
3619+
3620+ #: ../../c-api/init.rst:2719
3621+ msgid "These APIs are now a simple wrapper around ``PyMutex``."
3622+ msgstr ""
3623+
3624+ #: ../../c-api/init.rst:2725
3625+ msgid "A pointer to a mutual exclusion lock."
3626+ msgstr ""
3627+
3628+ #: ../../c-api/init.rst:2730
3629+ msgid "The result of acquiring a lock with a timeout."
3630+ msgstr ""
3631+
3632+ #: ../../c-api/init.rst:2736
3633+ msgid "Failed to acquire the lock."
3634+ msgstr ""
3635+
3636+ #: ../../c-api/init.rst:2740
3637+ msgid "The lock was successfully acquired."
3638+ msgstr ""
3639+
3640+ #: ../../c-api/init.rst:2744
3641+ msgid "The lock was interrupted by a signal."
3642+ msgstr ""
3643+
3644+ #: ../../c-api/init.rst:2749
3645+ msgid "Allocate a new lock."
3646+ msgstr ""
3647+
3648+ #: ../../c-api/init.rst:2751
3649+ msgid ""
3650+ "On success, this function returns a lock; on failure, this function returns "
3651+ "``0`` without an exception set."
3652+ msgstr ""
3653+
3654+ #: ../../c-api/init.rst:2754 ../../c-api/init.rst:2766
3655+ #: ../../c-api/init.rst:2786 ../../c-api/init.rst:2804
3656+ #: ../../c-api/init.rst:2812 ../../c-api/init.rst:2835
3657+ #: ../../c-api/init.rst:2919 ../../c-api/init.rst:2927
3658+ msgid "The caller does not need to hold an :term:`attached thread state`."
3659+ msgstr ""
3660+
3661+ #: ../../c-api/init.rst:2756
3662+ msgid ""
3663+ "This function now always uses :c:type:`PyMutex`. In prior versions, this "
3664+ "would use a lock provided by the operating system."
3665+ msgstr ""
3666+
3667+ #: ../../c-api/init.rst:2763
3668+ msgid ""
3669+ "Destroy *lock*. The lock should not be held by any thread when calling this."
3670+ msgstr ""
3671+
3672+ #: ../../c-api/init.rst:2771
3673+ msgid "Acquire *lock* with a timeout."
3674+ msgstr ""
3675+
3676+ #: ../../c-api/init.rst:2773
3677+ msgid ""
3678+ "This will wait for *microseconds* microseconds to acquire the lock. If the "
3679+ "timeout expires, this function returns :c:enumerator:`PY_LOCK_FAILURE`. If "
3680+ "*microseconds* is ``-1``, this will wait indefinitely until the lock has "
3681+ "been released."
3682+ msgstr ""
3683+
3684+ #: ../../c-api/init.rst:2778
3685+ msgid ""
3686+ "If *intr_flag* is ``1``, acquiring the lock may be interrupted by a signal, "
3687+ "in which case this function returns :c:enumerator:`PY_LOCK_INTR`. Upon "
3688+ "interruption, it's generally expected that the caller makes a call to :c:"
3689+ "func:`Py_MakePendingCalls` to propagate an exception to Python code."
3690+ msgstr ""
3691+
3692+ #: ../../c-api/init.rst:2783
3693+ msgid ""
3694+ "If the lock is successfully acquired, this function returns :c:enumerator:"
3695+ "`PY_LOCK_ACQUIRED`."
3696+ msgstr ""
3697+
3698+ #: ../../c-api/init.rst:2791
3699+ msgid "Acquire *lock*."
3700+ msgstr ""
3701+
3702+ #: ../../c-api/init.rst:2793
3703+ msgid ""
3704+ "If *waitflag* is ``1`` and another thread currently holds the lock, this "
3705+ "function will wait until the lock can be acquired and will always return "
3706+ "``1``."
3707+ msgstr ""
3708+
3709+ #: ../../c-api/init.rst:2797
3710+ msgid ""
3711+ "If *waitflag* is ``0`` and another thread holds the lock, this function will "
3712+ "not wait and instead return ``0``. If the lock is not held by any other "
3713+ "thread, then this function will acquire it and return ``1``."
3714+ msgstr ""
3715+
3716+ #: ../../c-api/init.rst:2801
3717+ msgid ""
3718+ "Unlike :c:func:`PyThread_acquire_lock_timed`, acquiring the lock cannot be "
3719+ "interrupted by a signal."
3720+ msgstr ""
3721+
3722+ #: ../../c-api/init.rst:2809
3723+ msgid ""
3724+ "Release *lock*. If *lock* is not held, then this function issues a fatal "
3725+ "error."
3726+ msgstr ""
3727+
3728+ #: ../../c-api/init.rst:2816
3729+ msgid "Operating System Thread APIs"
3730+ msgstr ""
3731+
3732+ #: ../../c-api/init.rst:2820
3733+ msgid "Sentinel value for an invalid thread ID."
3734+ msgstr ""
3735+
3736+ #: ../../c-api/init.rst:2822
3737+ msgid "This is currently equivalent to ``(unsigned long)-1``."
3738+ msgstr ""
3739+
3740+ #: ../../c-api/init.rst:2827
3741+ msgid ""
3742+ "Start function *func* in a new thread with argument *arg*. The resulting "
3743+ "thread is not intended to be joined."
3744+ msgstr ""
3745+
3746+ #: ../../c-api/init.rst:2830
3747+ msgid "*func* must not be ``NULL``, but *arg* may be ``NULL``."
3748+ msgstr ""
3749+
3750+ #: ../../c-api/init.rst:2832
3751+ msgid ""
3752+ "On success, this function returns the identifier of the new thread; on "
3753+ "failure, this returns :c:macro:`PYTHREAD_INVALID_THREAD_ID`."
3754+ msgstr ""
3755+
3756+ #: ../../c-api/init.rst:2840
3757+ msgid "Return the identifier of the current thread, which will never be zero."
3758+ msgstr ""
3759+
3760+ #: ../../c-api/init.rst:2842 ../../c-api/init.rst:2874
3761+ msgid ""
3762+ "This function cannot fail, and the caller does not need to hold an :term:"
3763+ "`attached thread state`."
3764+ msgstr ""
3765+
3766+ #: ../../c-api/init.rst:2846
3767+ msgid ":py:func:`threading.get_ident`"
3768+ msgstr ""
3769+
3770+ #: ../../c-api/init.rst:2851
3771+ msgid ""
3772+ "Get general information about the current thread in the form of a :ref:"
3773+ "`struct sequence <struct-sequence-objects>` object. This information is "
3774+ "accessible as :py:attr:`sys.thread_info` in Python."
3775+ msgstr ""
3776+
3777+ #: ../../c-api/init.rst:2855
3778+ msgid ""
3779+ "On success, this returns a new :term:`strong reference` to the thread "
3780+ "information; on failure, this returns ``NULL`` with an exception set."
3781+ msgstr ""
3782+
3783+ #: ../../c-api/init.rst:2858
3784+ msgid "The caller must hold an :term:`attached thread state`."
3785+ msgstr ""
3786+
3787+ #: ../../c-api/init.rst:2863
3788+ msgid "This macro is defined when the system supports native thread IDs."
3789+ msgstr ""
3790+
3791+ #: ../../c-api/init.rst:2868
3792+ msgid ""
3793+ "Get the native identifier of the current thread as it was assigned by the "
3794+ "operating system's kernel, which will never be less than zero."
3795+ msgstr ""
3796+
3797+ #: ../../c-api/init.rst:2871
3798+ msgid ""
3799+ "This function is only available when :c:macro:`PY_HAVE_THREAD_NATIVE_ID` is "
3800+ "defined."
3801+ msgstr ""
3802+
3803+ #: ../../c-api/init.rst:2878
3804+ msgid ":py:func:`threading.get_native_id`"
3805+ msgstr ""
3806+
3807+ #: ../../c-api/init.rst:2883
3808+ msgid ""
3809+ "Terminate the current thread. This function is generally considered unsafe "
3810+ "and should be avoided. It is kept solely for backwards compatibility."
3811+ msgstr ""
3812+
3813+ #: ../../c-api/init.rst:2886
3814+ msgid ""
3815+ "This function is only safe to call if all functions in the full call stack "
3816+ "are written to safely allow it."
3817+ msgstr ""
3818+
3819+ #: ../../c-api/init.rst:2891
3820+ msgid ""
3821+ "If the current system uses POSIX threads (also known as\" pthreads\" ), this "
3822+ "calls :manpage:`pthread_exit(3)`, which attempts to unwind the stack and "
3823+ "call C++ destructors on some libc implementations. However, if a "
3824+ "``noexcept`` function is reached, it may terminate the process. Other "
3825+ "systems, such as macOS, do unwinding."
3826+ msgstr ""
3827+
3828+ #: ../../c-api/init.rst:2897
3829+ msgid ""
3830+ "On Windows, this function calls ``_endthreadex()``, which kills the thread "
3831+ "without calling C++ destructors."
3832+ msgstr ""
3833+
3834+ #: ../../c-api/init.rst:2900
3835+ msgid "In any case, there is a risk of corruption on the thread's stack."
3836+ msgstr ""
3837+
3838+ #: ../../c-api/init.rst:2907
3839+ msgid ""
3840+ "Initialize ``PyThread*`` APIs. Python executes this function automatically, "
3841+ "so there's little need to call it from an extension module."
3842+ msgstr ""
3843+
3844+ #: ../../c-api/init.rst:2913
3845+ msgid "Set the stack size of the current thread to *size* bytes."
3846+ msgstr ""
3847+
3848+ #: ../../c-api/init.rst:2915
3849+ msgid ""
3850+ "This function returns ``0`` on success, ``-1`` if *size* is invalid, or "
3851+ "``-2`` if the system does not support changing the stack size. This function "
3852+ "does not set exceptions."
3853+ msgstr ""
3854+
3855+ #: ../../c-api/init.rst:2924
3856+ msgid ""
3857+ "Return the stack size of the current thread in bytes, or ``0`` if the "
3858+ "system's default stack size is in use."
3859+ msgstr ""
3860+
36103861#: ../../c-api/init.rst:350
36113862msgid "PyEval_InitThreads()"
36123863msgstr "PyEval_InitThreads()"