diff options
Diffstat (limited to 'templates/man3/pthread_mutex_init.3.pot')
-rw-r--r-- | templates/man3/pthread_mutex_init.3.pot | 274 |
1 files changed, 179 insertions, 95 deletions
diff --git a/templates/man3/pthread_mutex_init.3.pot b/templates/man3/pthread_mutex_init.3.pot index 62bfbcfb..0a9fd4e3 100644 --- a/templates/man3/pthread_mutex_init.3.pot +++ b/templates/man3/pthread_mutex_init.3.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-01 17:04+0100\n" +"POT-Creation-Date: 2024-06-01 06:13+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -17,33 +17,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "pthread_mutex_init" msgstr "" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2023-10-31" +msgid "2024-05-19" msgstr "" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable #, no-wrap -msgid "Linux man-pages 6.06" +msgid "Linux man-pages 6.8" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " "pthread_mutex_unlock, pthread_mutex_destroy - operations on mutexes" @@ -51,47 +52,48 @@ msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text -#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron -msgid "B<#include E<lt>pthread.hE<gt>>" +#: archlinux debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>pthread.hE<gt>>\n" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed +#, no-wrap msgid "" -"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;> " -"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;> " -"B<pthread_mutex_t >I<errchkmutex>B< = " -"PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>" +"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" +"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" +"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed +#, no-wrap msgid "" -"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<, const " -"pthread_mutexattr_t *>I<mutexattr>B<);> B<int " -"pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);> B<int " -"pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);> B<int " -"pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);> B<int " -"pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>" +"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" +"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" +"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" +"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" +"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" +"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "A mutex is a MUTual EXclusion device, and is useful for protecting shared " "data structures from concurrent modifications, and implementing critical " @@ -99,7 +101,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "A mutex has two possible states: unlocked (not owned by any thread), and " "locked (owned by one thread). A mutex can never be owned by two different " @@ -110,7 +113,7 @@ msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "B<pthread_mutex_init> initializes the mutex object pointed to by I<mutex> " "according to the mutex attributes specified in I<mutexattr>. If " @@ -118,7 +121,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "The LinuxThreads implementation supports only one mutex attributes, the " "I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " @@ -129,7 +133,7 @@ msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "Variables of type B<pthread_mutex_t> can also be initialized statically, " "using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " @@ -138,7 +142,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " "unlocked, it becomes locked and owned by the calling thread, and " @@ -148,7 +153,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "If the mutex is already locked by the calling thread, the behavior of " "B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is of " @@ -163,7 +169,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " "except that it does not block the calling thread if the mutex is already " @@ -173,7 +180,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to be " "locked and owned by the calling thread on entrance to " @@ -186,7 +194,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " "actually checks at run-time that the mutex is locked on entrance, and that " @@ -198,7 +207,8 @@ msgid "" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B<pthread_mutex_destroy> destroys a mutex object, freeing the resources it " "might hold. The mutex must be unlocked on entrance. In the LinuxThreads " @@ -209,32 +219,33 @@ msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "CANCELLATION" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed msgid "" -"None of the mutex functions is a cancellation point, not even " +"None of the mutex functions is a cancelation point, not even " "B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " -"arbitrary durations. This way, the status of mutexes at cancellation points " -"is predictable, allowing cancellation handlers to unlock precisely those " +"arbitrary durations. This way, the status of mutexes at cancelation points " +"is predictable, allowing cancelation handlers to unlock precisely those " "mutexes that need to be unlocked before the thread stops executing. " -"Consequently, threads using deferred cancellation should never hold a mutex " +"Consequently, threads using deferred cancelation should never hold a mutex " "for extended periods of time." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "ASYNC-SIGNAL SAFETY" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "The mutex functions are not async-signal safe. What this means is that they " "should not be called from a signal handler. In particular, calling " @@ -244,13 +255,14 @@ msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "B<pthread_mutex_init> always returns 0. The other mutex functions return 0 " "on success and a non-zero error code on error." @@ -258,39 +270,41 @@ msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "The B<pthread_mutex_lock> function returns the following error code on error:" msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "B<EINVAL>" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "The mutex has not been properly initialized." msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "B<EDEADLK>" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "The mutex is already locked by the calling thread (``error checking'' " "mutexes only)." @@ -298,7 +312,7 @@ msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "The B<pthread_mutex_trylock> function returns the following error codes on " "error:" @@ -306,19 +320,20 @@ msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "B<EBUSY>" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "The mutex could not be acquired because it was currently locked." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "The B<pthread_mutex_unlock> function returns the following error code on " "error:" @@ -326,40 +341,42 @@ msgstr "" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "B<EPERM>" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "The calling thread does not own the mutex (``error checking'' mutexes only)." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "The B<pthread_mutex_destroy> function returns the following error code on " "error:" msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "The mutex is currently locked." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " "B<pthread_cancel>(3)." @@ -367,20 +384,20 @@ msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "EXAMPLE" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "A shared global variable I<x> can be protected by a mutex as follows:" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "" "B<int x;\n" @@ -389,7 +406,7 @@ msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed msgid "" "All accesses and modifications to I<x> should be bracketed by calls to " "B<pthread_mutex_lock> and B<pthread_mutex_unlock> as follows:" @@ -397,7 +414,7 @@ msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron +#: mageia-cauldron opensuse-tumbleweed #, no-wrap msgid "" "B<pthread_mutex_lock(&mut);\n" @@ -406,64 +423,69 @@ msgid "" msgstr "" #. type: TH -#: debian-bookworm debian-unstable +#: debian-bookworm #, no-wrap msgid "PTHREAD_MUTEX" msgstr "" #. type: TH -#: debian-bookworm debian-unstable +#: debian-bookworm #, no-wrap msgid "LinuxThreads" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm fedora-40 fedora-rawhide mageia-cauldron +msgid "B<#include E<lt>pthread.hE<gt>>" +msgstr "" + +#. type: Plain text +#: debian-bookworm msgid "B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_t >I<errchkmutex>B< = " "PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<, const " "pthread_mutexattr_t *>I<mutexattr>B<);>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "A mutex has two possible states: unlocked (not owned by any thread), and " "locked (owned by one thread). A mutex can never be owned by two different " @@ -473,7 +495,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "The LinuxThreads implementation supports only one mutex attributes, the " "I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " @@ -483,7 +505,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " "unlocked, it becomes locked and owned by the calling thread, and " @@ -493,7 +515,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "If the mutex is already locked by the calling thread, the behavior of " "B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is of " @@ -508,7 +530,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " "except that it does not block the calling thread if the mutex is already " @@ -518,7 +540,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to be " "locked and owned by the calling thread on entrance to " @@ -530,7 +552,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " "actually checks at run-time that the mutex is locked on entrance, and that " @@ -542,7 +564,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_destroy> destroys a mutex object, freeing the resources it " "might hold. The mutex must be unlocked on entrance. In the LinuxThreads " @@ -552,7 +574,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "None of the mutex functions is a cancellation point, not even " "B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " @@ -564,7 +586,7 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "The mutex functions are not async-signal safe. What this means is that they " "should not be called from a signal handler. In particular, calling " @@ -573,47 +595,109 @@ msgid "" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "B<pthread_mutex_init> always returns 0. The other mutex functions return 0 " "on success and a non-zero error code on error." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "the mutex has not been properly initialized." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "the mutex is already locked by the calling thread (``error checking'' " "mutexes only)." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "the mutex could not be acquired because it was currently locked." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "" "the calling thread does not own the mutex (``error checking'' mutexes only)." msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "the mutex is currently locked." msgstr "" #. type: SH -#: debian-bookworm debian-unstable +#: debian-bookworm #, no-wrap msgid "AUTHOR" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable +#: debian-bookworm msgid "Xavier Leroy E<lt>Xavier.Leroy@inria.frE<gt>" msgstr "" + +#. type: TH +#: fedora-40 mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: fedora-40 mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +msgid "" +"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;> " +"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;> " +"B<pthread_mutex_t >I<errchkmutex>B< = " +"PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>" +msgstr "" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +msgid "" +"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<, const " +"pthread_mutexattr_t *>I<mutexattr>B<);> B<int " +"pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);> B<int " +"pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);> B<int " +"pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);> B<int " +"pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>" +msgstr "" + +#. type: Plain text +#: fedora-40 mageia-cauldron +msgid "" +"None of the mutex functions is a cancellation point, not even " +"B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " +"arbitrary durations. This way, the status of mutexes at cancellation points " +"is predictable, allowing cancellation handlers to unlock precisely those " +"mutexes that need to be unlocked before the thread stops executing. " +"Consequently, threads using deferred cancellation should never hold a mutex " +"for extended periods of time." +msgstr "" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "2024-02-26" +msgstr "" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "Linux man-pages 6.7" +msgstr "" + +#. type: TH +#: opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages (unreleased)" +msgstr "" |