| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Gérard Delafond <[email protected]> |
| 5 |
# Christophe Blaess <[email protected]>, 1999, 2001, 2003, 2005, 2006. |
| 6 |
# Thierry Vignaud <[email protected]>, 2000, 2002. |
| 7 |
# Alain Portal <[email protected]>, 2003. |
| 8 |
# Denis Barbier <[email protected]>, 2004. |
| 9 |
# Nicolas François <[email protected]>, 2007, 2009. |
| 10 |
# Florentin Duneau <[email protected]>, 2006, 2007, 2008, 2009. |
| 11 |
# Thomas Blein <[email protected]>, 2011, 2014. |
| 12 |
# David Prévot <[email protected]>, 2012. |
| 13 |
msgid "" |
| 14 |
msgstr "" |
| 15 |
"Project-Id-Version: glibc\n" |
| 16 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 17 |
"PO-Revision-Date: 2024-06-03 11:54+0200\n" |
| 18 |
"Last-Translator: Thomas Blein <[email protected]>\n" |
| 19 |
"Language-Team: French <[email protected]>\n" |
| 20 |
"Language: fr\n" |
| 21 |
"MIME-Version: 1.0\n" |
| 22 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 23 |
"Content-Transfer-Encoding: 8bit\n" |
| 24 |
"X-Generator: Lokalize 22.12.3\n" |
| 25 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 29 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "pthread_mutex_init" |
| 32 |
msgstr "pthread_mutex_init" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 36 |
#: opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "2025-05-17" |
| 39 |
msgstr "17 mai 2025" |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable |
| 43 |
#, no-wrap |
| 44 |
msgid "Linux man-pages 6.18" |
| 45 |
msgstr "Pages du manuel de Linux 6.18" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
#, no-wrap |
| 51 |
msgid "NAME" |
| 52 |
msgstr "NOM" |
| 53 |
|
| 54 |
#. type: Plain text |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
msgid "" |
| 58 |
"pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " |
| 59 |
"pthread_mutex_unlock, pthread_mutex_destroy - operations on mutexes" |
| 60 |
msgstr "" |
| 61 |
"pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " |
| 62 |
"pthread_mutex_unlock, pthread_mutex_destroy - Opérations sur les mutex" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "SYNOPSIS" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "B<#include E<lt>pthread.hE<gt>>\n" |
| 76 |
msgstr "B<#include E<lt>pthread.hE<gt>>\n" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "" |
| 83 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 84 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 85 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 86 |
msgstr "" |
| 87 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 88 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 89 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
#, no-wrap |
| 95 |
msgid "" |
| 96 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 97 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 98 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 99 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 100 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 101 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 104 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 105 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 106 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 107 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 108 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 109 |
|
| 110 |
#. type: SH |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
#, no-wrap |
| 114 |
msgid "DESCRIPTION" |
| 115 |
msgstr "DESCRIPTION" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
msgid "" |
| 121 |
"A mutex is a MUTual EXclusion device, and is useful for protecting shared " |
| 122 |
"data structures from concurrent modifications, and implementing critical " |
| 123 |
"sections and monitors." |
| 124 |
msgstr "" |
| 125 |
"Un mutex est un objet d'exclusion mutuelle (MUTual EXclusion), et il est " |
| 126 |
"très pratique pour protéger des données partagées de modifications " |
| 127 |
"simultanées et pour implémenter des sections critiques et moniteurs." |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "" |
| 133 |
"A mutex has two possible states: unlocked (not owned by any thread), and " |
| 134 |
"locked (owned by one thread). A mutex can never be owned by two different " |
| 135 |
"threads simultaneously. A thread attempting to lock a mutex that is already " |
| 136 |
"locked by another thread is suspended until the owning thread unlocks the " |
| 137 |
"mutex first." |
| 138 |
msgstr "" |
| 139 |
"Un mutex peut être dans deux états\\ : déverrouillé (pris par aucun thread) " |
| 140 |
"ou verrouillé (pris par un thread). Un mutex ne peut être pris que par un " |
| 141 |
"seul thread à la fois. Un thread qui tente de verrouiller un mutex déjà " |
| 142 |
"verrouillé est suspendu jusqu'à ce que le mutex soit déverrouillé." |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 146 |
#: opensuse-tumbleweed |
| 147 |
#, fuzzy |
| 148 |
#| msgid "" |
| 149 |
#| "B<pthread_mutex_init> initializes the mutex object pointed to by I<mutex> " |
| 150 |
#| "according to the mutex attributes specified in I<mutexattr>. If " |
| 151 |
#| "I<mutexattr> is B<NULL>, default attributes are used instead." |
| 152 |
msgid "" |
| 153 |
"B<pthread_mutex_init>() initializes the mutex object pointed to by I<mutex> " |
| 154 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 155 |
"I<mutexattr> is NULL, default attributes are used instead." |
| 156 |
msgstr "" |
| 157 |
"B<pthread_mutex_init>() initialise le mutex pointé par I<mutex> selon les " |
| 158 |
"attributs de mutex spécifié par I<mutexattr>. Si I<mutexattr> vaut NULL, les " |
| 159 |
"paramètres par défaut sont utilisés." |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 163 |
#: opensuse-tumbleweed |
| 164 |
#, fuzzy |
| 165 |
#| msgid "" |
| 166 |
#| "The LinuxThreads implementation supports only one mutex attributes, the " |
| 167 |
#| "I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " |
| 168 |
#| "checking''. The kind of a mutex determines whether it can be locked " |
| 169 |
#| "again by a thread that already owns it. The default kind is ``fast''. " |
| 170 |
#| "See B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 171 |
msgid "" |
| 172 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 173 |
"I<mutex kind>, which is either \"fast\", \"recursive\", or \"error " |
| 174 |
"checking\". The kind of a mutex determines whether it can be locked again " |
| 175 |
"by a thread that already owns it. The default kind is \"fast\". See " |
| 176 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 177 |
msgstr "" |
| 178 |
"L'implémentation LinuxThreads ne gère qu'un seul attribut, le I<type de " |
| 179 |
"mutex>, qui peut être soit «\\ rapide\\ », «\\ récursif\\ » ou à «\\ " |
| 180 |
"vérification d'erreur\\ ». Le type de mutex détermine s'il peut être " |
| 181 |
"verrouillé plusieurs fois par le même thread. Le type par défaut est «\\ " |
| 182 |
"rapide\\ ». Voyez B<pthread_mutexattr_init>(3) pour plus d'informations sur " |
| 183 |
"les attributs de mutex." |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 187 |
#: opensuse-tumbleweed |
| 188 |
#, fuzzy |
| 189 |
#| msgid "" |
| 190 |
#| "Variables of type B<pthread_mutex_t> can also be initialized statically, " |
| 191 |
#| "using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 192 |
#| "B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 193 |
#| "B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 194 |
msgid "" |
| 195 |
"Variables of type I<pthread_mutex_t> can also be initialized statically, " |
| 196 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 197 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 198 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 199 |
msgstr "" |
| 200 |
"Les variables de type B<pthread_mutex_t> peuvent aussi être initialisées de " |
| 201 |
"manière statique, en utilisant les constantes B<PTHREAD_MUTEX_INITIALIZER> " |
| 202 |
"(pour les mutex «\\ rapides\\ »), B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> " |
| 203 |
"(pour les mutex «\\ récursifs\\ ») et " |
| 204 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (pour les mutex à «\\ " |
| 205 |
"vérification d'erreur\\ »)." |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 209 |
#: opensuse-tumbleweed |
| 210 |
#, fuzzy |
| 211 |
#| msgid "" |
| 212 |
#| "B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " |
| 213 |
#| "unlocked, it becomes locked and owned by the calling thread, and " |
| 214 |
#| "B<pthread_mutex_lock> returns immediately. If the mutex is already " |
| 215 |
#| "locked by another thread, B<pthread_mutex_lock> suspends the calling " |
| 216 |
#| "thread until the mutex is unlocked." |
| 217 |
msgid "" |
| 218 |
"B<pthread_mutex_lock>() locks the given mutex. If the mutex is currently " |
| 219 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 220 |
"B<pthread_mutex_lock>() returns immediately. If the mutex is already " |
| 221 |
"locked by another thread, B<pthread_mutex_lock>() suspends the calling " |
| 222 |
"thread until the mutex is unlocked." |
| 223 |
msgstr "" |
| 224 |
"B<pthread_mutex_lock>() verrouille le mutex. Si le mutex est déverrouillé, " |
| 225 |
"il devient verrouillé et il est possédé par le thread appelant et " |
| 226 |
"B<pthread_mutex_lock>() rend la main immédiatement. Si le mutex est déjà " |
| 227 |
"verrouillé par un autre thread, B<pthread_mutex_lock> suspend le thread " |
| 228 |
"appelant jusqu'à ce que le mutex soit déverrouillé." |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 232 |
#: opensuse-tumbleweed |
| 233 |
#, fuzzy |
| 234 |
#| msgid "" |
| 235 |
#| "If the mutex is already locked by the calling thread, the behavior of " |
| 236 |
#| "B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is " |
| 237 |
#| "of the ``fast'' kind, the calling thread is suspended until the mutex is " |
| 238 |
#| "unlocked, thus effectively causing the calling thread to deadlock. If " |
| 239 |
#| "the mutex is of the ``error checking'' kind, B<pthread_mutex_lock> " |
| 240 |
#| "returns immediately with the error code B<EDEADLK>. If the mutex is of " |
| 241 |
#| "the ``recursive'' kind, B<pthread_mutex_lock> succeeds and returns " |
| 242 |
#| "immediately, recording the number of times the calling thread has locked " |
| 243 |
#| "the mutex. An equal number of B<pthread_mutex_unlock> operations must be " |
| 244 |
#| "performed before the mutex returns to the unlocked state." |
| 245 |
msgid "" |
| 246 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 247 |
"B<pthread_mutex_lock>() depends on the kind of the mutex. If the mutex is " |
| 248 |
"of the \"fast\" kind, the calling thread is suspended until the mutex is " |
| 249 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 250 |
"mutex is of the \"error checking\" kind, B<pthread_mutex_lock>() returns " |
| 251 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 252 |
"\"recursive\" kind, B<pthread_mutex_lock>() succeeds and returns " |
| 253 |
"immediately, recording the number of times the calling thread has locked the " |
| 254 |
"mutex. An equal number of B<pthread_mutex_unlock>() operations must be " |
| 255 |
"performed before the mutex returns to the unlocked state." |
| 256 |
msgstr "" |
| 257 |
"Si le mutex est déjà verrouillé par le thread appelant, le comportement de " |
| 258 |
"B<pthread_mutex_lock>() dépend du type du mutex. Si ce dernier est de type " |
| 259 |
"«\\ rapide\\ », le thread appelant est suspendu jusqu'à ce que le mutex soit " |
| 260 |
"déverrouillé, plaçant ainsi le thread appelant en situation de blocage " |
| 261 |
"définitif. Si le mutex est de type «\\ vérification d'erreur\\ », " |
| 262 |
"B<pthread_mutex_lock>() rend la main immédiatement avec le code d'erreur " |
| 263 |
"B<EDEADLK>. Si le mutex est de type «\\ récursif\\ », " |
| 264 |
"B<pthread_mutex_lock>() rend la main immédiatement avec un code de retour " |
| 265 |
"indiquant le succès, enregistrant le nombre de fois où le thread appelant a " |
| 266 |
"verrouillé le mutex. Un nombre égal d'appels à B<pthread_mutex_unlock>() " |
| 267 |
"doit être réalisé avant que le mutex retourne à l'état déverrouillé." |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 271 |
#: opensuse-tumbleweed |
| 272 |
#, fuzzy |
| 273 |
#| msgid "" |
| 274 |
#| "B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " |
| 275 |
#| "except that it does not block the calling thread if the mutex is already " |
| 276 |
#| "locked by another thread (or by the calling thread in the case of a " |
| 277 |
#| "``fast'' mutex). Instead, B<pthread_mutex_trylock> returns immediately " |
| 278 |
#| "with the error code B<EBUSY>." |
| 279 |
msgid "" |
| 280 |
"B<pthread_mutex_trylock>() behaves identically to B<pthread_mutex_lock>(), " |
| 281 |
"except that it does not block the calling thread if the mutex is already " |
| 282 |
"locked by another thread (or by the calling thread in the case of a \"fast\" " |
| 283 |
"mutex). Instead, B<pthread_mutex_trylock>() returns immediately with the " |
| 284 |
"error code B<EBUSY>." |
| 285 |
msgstr "" |
| 286 |
"B<pthread_mutex_trylock>() se comporte de la même manière que " |
| 287 |
"B<pthread_mutex_lock>(), excepté qu'elle ne bloque pas le thread appelant si " |
| 288 |
"le mutex est déjà verrouillé par un autre thread (ou par le thread appelant " |
| 289 |
"dans le cas d'un mutex «\\ rapide\\ »). Au contraire, " |
| 290 |
"B<pthread_mutex_trylock>() rend la main immédiatement avec le code d'erreur " |
| 291 |
"B<EBUSY>." |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 295 |
#: opensuse-tumbleweed |
| 296 |
#, fuzzy |
| 297 |
#| msgid "" |
| 298 |
#| "B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to " |
| 299 |
#| "be locked and owned by the calling thread on entrance to " |
| 300 |
#| "B<pthread_mutex_unlock>. If the mutex is of the ``fast'' kind, " |
| 301 |
#| "B<pthread_mutex_unlock> always returns it to the unlocked state. If it " |
| 302 |
#| "is of the ``recursive'' kind, it decrements the locking count of the " |
| 303 |
#| "mutex (number of B<pthread_mutex_lock> operations performed on it by the " |
| 304 |
#| "calling thread), and only when this count reaches zero is the mutex " |
| 305 |
#| "actually unlocked." |
| 306 |
msgid "" |
| 307 |
"B<pthread_mutex_unlock>() unlocks the given mutex. The mutex is assumed to " |
| 308 |
"be locked and owned by the calling thread on entrance to " |
| 309 |
"B<pthread_mutex_unlock>(). If the mutex is of the \"fast\" kind, " |
| 310 |
"B<pthread_mutex_unlock>() always returns it to the unlocked state. If it " |
| 311 |
"is of the \"recursive\" kind, it decrements the locking count of the mutex " |
| 312 |
"(number of B<pthread_mutex_lock>() operations performed on it by the " |
| 313 |
"calling thread), and only when this count reaches zero is the mutex actually " |
| 314 |
"unlocked." |
| 315 |
msgstr "" |
| 316 |
"B<pthread_mutex_unlock>() déverrouille le mutex. Celui-ci est supposé " |
| 317 |
"verrouillé, et ce par le thread courant en entrant dans " |
| 318 |
"B<pthread_mutex_unlock>(). Si le mutex est de type «\\ rapide\\ », " |
| 319 |
"B<pthread_mutex_unlock>() le réinitialise toujours à l'état déverrouillé. " |
| 320 |
"S'il est de type «\\ récursif\\ », son compteur de verrouillage est " |
| 321 |
"décrémenté (du nombre d'opérations B<pthread_mutex_lock>() réalisées sur le " |
| 322 |
"mutex par le thread appelant), et déverrouillé seulement quand ce compteur " |
| 323 |
"atteint 0." |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 327 |
#: opensuse-tumbleweed |
| 328 |
#, fuzzy |
| 329 |
#| msgid "" |
| 330 |
#| "On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " |
| 331 |
#| "actually checks at run-time that the mutex is locked on entrance, and " |
| 332 |
#| "that it was locked by the same thread that is now calling " |
| 333 |
#| "B<pthread_mutex_unlock>. If these conditions are not met, an error code " |
| 334 |
#| "is returned and the mutex remains unchanged. ``Fast'' mutexes perform no " |
| 335 |
#| "such checks, thus allowing a locked mutex to be unlocked by a thread " |
| 336 |
#| "other than its owner. This is non-portable behavior and must not be " |
| 337 |
#| "relied upon." |
| 338 |
msgid "" |
| 339 |
"On \"error checking\" and \"recursive\" mutexes, B<pthread_mutex_unlock>() " |
| 340 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 341 |
"it was locked by the same thread that is now calling " |
| 342 |
"B<pthread_mutex_unlock>(). If these conditions are not met, an error code " |
| 343 |
"is returned and the mutex remains unchanged. \"Fast\" mutexes perform no " |
| 344 |
"such checks, thus allowing a locked mutex to be unlocked by a thread other " |
| 345 |
"than its owner. This is non-portable behavior and must not be relied upon." |
| 346 |
msgstr "" |
| 347 |
"Sur les mutex «\\ vérification d'erreur\\ » et « récursif », " |
| 348 |
"B<pthread_mutex_unlock>() vérifie lors de l'exécution que le mutex est " |
| 349 |
"verrouillé en entrant, et qu'il est verrouillé par le même thread que celui " |
| 350 |
"appelant B<pthread_mutex_unlock>() Si ces conditions ne sont pas réunies, un " |
| 351 |
"code d'erreur est renvoyé et le mutex n'est pas modifié. Les mutex «\\ " |
| 352 |
"rapides\\ » ne réalisent pas de tels tests, permettant à un mutex verrouillé " |
| 353 |
"d'être déverrouillé par un thread autre que celui l'ayant verrouillé. Ce " |
| 354 |
"comportement n'est pas portable et l'on ne doit pas compter dessus." |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 358 |
#: opensuse-tumbleweed |
| 359 |
#, fuzzy |
| 360 |
#| msgid "" |
| 361 |
#| "B<pthread_mutex_destroy> destroys a mutex object, freeing the resources " |
| 362 |
#| "it might hold. The mutex must be unlocked on entrance. In the " |
| 363 |
#| "LinuxThreads implementation, no resources are associated with mutex " |
| 364 |
#| "objects, thus B<pthread_mutex_destroy> actually does nothing except " |
| 365 |
#| "checking that the mutex is unlocked." |
| 366 |
msgid "" |
| 367 |
"B<pthread_mutex_destroy>() destroys a mutex object, freeing the resources " |
| 368 |
"it might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 369 |
"implementation, no resources are associated with mutex objects, thus " |
| 370 |
"B<pthread_mutex_destroy>() actually does nothing except checking that the " |
| 371 |
"mutex is unlocked." |
| 372 |
msgstr "" |
| 373 |
"B<pthread_mutex_destroy>() détruit un mutex, libérant les ressources qu'il " |
| 374 |
"détient. Le mutex doit être déverrouillé. Dans l'implémentation " |
| 375 |
"LinuxThreads, aucune ressource ne peut être associée à un mutex, aussi " |
| 376 |
"B<pthread_mutex_destroy>() ne fait rien si ce n'est vérifier que le mutex " |
| 377 |
"n'est pas verrouillé." |
| 378 |
|
| 379 |
#. type: SH |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
#, no-wrap |
| 383 |
msgid "CANCELLATION" |
| 384 |
msgstr "ANNULATION" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 388 |
#: opensuse-tumbleweed |
| 389 |
#, fuzzy |
| 390 |
#| msgid "" |
| 391 |
#| "None of the mutex functions is a cancelation point, not even " |
| 392 |
#| "B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread " |
| 393 |
#| "for arbitrary durations. This way, the status of mutexes at cancelation " |
| 394 |
#| "points is predictable, allowing cancelation handlers to unlock precisely " |
| 395 |
#| "those mutexes that need to be unlocked before the thread stops " |
| 396 |
#| "executing. Consequently, threads using deferred cancelation should never " |
| 397 |
#| "hold a mutex for extended periods of time." |
| 398 |
msgid "" |
| 399 |
"None of the mutex functions is a cancelation point, not even " |
| 400 |
"B<pthread_mutex_lock>(), in spite of the fact that it can suspend a thread " |
| 401 |
"for arbitrary durations. This way, the status of mutexes at cancelation " |
| 402 |
"points is predictable, allowing cancelation handlers to unlock precisely " |
| 403 |
"those mutexes that need to be unlocked before the thread stops executing. " |
| 404 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 405 |
"for extended periods of time." |
| 406 |
msgstr "" |
| 407 |
"Aucune des primitives relatives aux mutex n'est un point d'annulation, ni " |
| 408 |
"même B<pthread_mutex_lock>(), malgré le fait qu'il peut suspendre " |
| 409 |
"l'exécution du thread pour une longue durée. De cette manière, l'état des " |
| 410 |
"mutex aux points d'annulation est prévisible, permettant aux gestionnaires " |
| 411 |
"d'annulation de déverrouiller précisément ces mutex qui nécessitent d'être " |
| 412 |
"déverrouillés avant que l'exécution du thread ne s'arrête définitivement. " |
| 413 |
"Aussi, les threads travaillant en mode d'annulation retardée ne doivent-" |
| 414 |
"jamais verrouiller un mutex pour de longues périodes de temps." |
| 415 |
|
| 416 |
#. type: SH |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
#, no-wrap |
| 420 |
msgid "ASYNC-SIGNAL SAFETY" |
| 421 |
msgstr "ASYNC-SIGNAL SAFETY" |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 425 |
#: opensuse-tumbleweed |
| 426 |
#, fuzzy |
| 427 |
#| msgid "" |
| 428 |
#| "The mutex functions are not async-signal safe. What this means is that " |
| 429 |
#| "they should not be called from a signal handler. In particular, calling " |
| 430 |
#| "B<pthread_mutex_lock> or B<pthread_mutex_unlock> from a signal handler " |
| 431 |
#| "may deadlock the calling thread." |
| 432 |
msgid "" |
| 433 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 434 |
"should not be called from a signal handler. In particular, calling " |
| 435 |
"B<pthread_mutex_lock>() or B<pthread_mutex_unlock>() from a signal handler " |
| 436 |
"may deadlock the calling thread." |
| 437 |
msgstr "" |
| 438 |
"Les fonctions relatives aux mutex ne sont pas fiables par rapport aux " |
| 439 |
"signaux asynchrones et ne doivent donc pas être utilisées dans des " |
| 440 |
"gestionnaires de signaux. En particulier, appeler B<pthread_mutex_lock>() ou " |
| 441 |
"B<pthread_mutex_unlock>() dans un gestionnaire de signal peut placer le " |
| 442 |
"thread appelant dans une situation de blocage définitif." |
| 443 |
|
| 444 |
#. type: SH |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
#, no-wrap |
| 448 |
msgid "RETURN VALUE" |
| 449 |
msgstr "VALEUR RENVOYÉE" |
| 450 |
|
| 451 |
#. type: Plain text |
| 452 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 453 |
#: opensuse-tumbleweed |
| 454 |
#, fuzzy |
| 455 |
#| msgid "" |
| 456 |
#| "B<pthread_mutex_init> always returns 0. The other mutex functions return " |
| 457 |
#| "0 on success and a non-zero error code on error." |
| 458 |
msgid "" |
| 459 |
"B<pthread_mutex_init>() always returns 0. The other mutex functions return " |
| 460 |
"0 on success and a non-zero error code on error." |
| 461 |
msgstr "" |
| 462 |
"B<pthread_mutex_init>() retourne toujours 0. Les autres fonctions renvoient " |
| 463 |
"0 en cas de succès et un code d'erreur non nul en cas de problème." |
| 464 |
|
| 465 |
#. type: SH |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
#, no-wrap |
| 469 |
msgid "ERRORS" |
| 470 |
msgstr "ERREURS" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 474 |
#: opensuse-tumbleweed |
| 475 |
#, fuzzy |
| 476 |
#| msgid "" |
| 477 |
#| "The B<pthread_mutex_lock> function returns the following error code on " |
| 478 |
#| "error:" |
| 479 |
msgid "" |
| 480 |
"The B<pthread_mutex_lock>() function returns the following error code on " |
| 481 |
"error:" |
| 482 |
msgstr "" |
| 483 |
"La fonction B<pthread_mutex_lock>() renvoie l'un des codes d'erreur suivants " |
| 484 |
"en cas de problème\\ :" |
| 485 |
|
| 486 |
#. type: TP |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
#, no-wrap |
| 490 |
msgid "B<EINVAL>" |
| 491 |
msgstr "B<EINVAL>" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
msgid "The mutex has not been properly initialized." |
| 497 |
msgstr "Le mutex n'a pas été initialisé correctement." |
| 498 |
|
| 499 |
#. type: TP |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "B<EDEADLK>" |
| 504 |
msgstr "B<EDEADLK>" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 508 |
#: opensuse-tumbleweed |
| 509 |
#, fuzzy |
| 510 |
#| msgid "" |
| 511 |
#| "The mutex is already locked by the calling thread (``error checking'' " |
| 512 |
#| "mutexes only)." |
| 513 |
msgid "" |
| 514 |
"The mutex is already locked by the calling thread (\"error checking\" " |
| 515 |
"mutexes only)." |
| 516 |
msgstr "" |
| 517 |
"Le mutex est déjà verrouillé par le thread appelant (mutex à «\\ " |
| 518 |
"vérification d'erreur\\ » seulement)." |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 522 |
#: opensuse-tumbleweed |
| 523 |
#, fuzzy |
| 524 |
#| msgid "" |
| 525 |
#| "The B<pthread_mutex_trylock> function returns the following error codes " |
| 526 |
#| "on error:" |
| 527 |
msgid "" |
| 528 |
"The B<pthread_mutex_trylock>() function returns the following error codes " |
| 529 |
"on error:" |
| 530 |
msgstr "" |
| 531 |
"La fonction B<pthread_mutex_trylock>() renvoie l'un des codes d'erreur " |
| 532 |
"suivants en cas de problème\\ :" |
| 533 |
|
| 534 |
#. type: TP |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
msgid "B<EBUSY>" |
| 539 |
msgstr "B<EBUSY>" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "The mutex could not be acquired because it was currently locked." |
| 545 |
msgstr "Le mutex ne peut être verrouillé car il l'est déjà." |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 549 |
#: opensuse-tumbleweed |
| 550 |
#, fuzzy |
| 551 |
#| msgid "" |
| 552 |
#| "The B<pthread_mutex_unlock> function returns the following error code on " |
| 553 |
#| "error:" |
| 554 |
msgid "" |
| 555 |
"The B<pthread_mutex_unlock>() function returns the following error code on " |
| 556 |
"error:" |
| 557 |
msgstr "" |
| 558 |
"La fonction B<pthread_mutex_unlock>() renvoie le code d'erreur suivant en " |
| 559 |
"cas de problème\\ :" |
| 560 |
|
| 561 |
#. type: TP |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "B<EPERM>" |
| 566 |
msgstr "B<EPERM>" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 570 |
#: opensuse-tumbleweed |
| 571 |
#, fuzzy |
| 572 |
#| msgid "" |
| 573 |
#| "The calling thread does not own the mutex (``error checking'' mutexes " |
| 574 |
#| "only)." |
| 575 |
msgid "" |
| 576 |
"The calling thread does not own the mutex (\"error checking\" mutexes only)." |
| 577 |
msgstr "" |
| 578 |
"Le thread appelant ne possède pas le mutex (mutex à «\\ vérification " |
| 579 |
"d'erreur\\ » seulement)." |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 583 |
#: opensuse-tumbleweed |
| 584 |
#, fuzzy |
| 585 |
#| msgid "" |
| 586 |
#| "The B<pthread_mutex_destroy> function returns the following error code on " |
| 587 |
#| "error:" |
| 588 |
msgid "" |
| 589 |
"The B<pthread_mutex_destroy>() function returns the following error code on " |
| 590 |
"error:" |
| 591 |
msgstr "" |
| 592 |
"La fonction B<pthread_mutex_destroy>() renvoie le code d'erreur suivant en " |
| 593 |
"cas de problème\\ :" |
| 594 |
|
| 595 |
#. type: Plain text |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
msgid "The mutex is currently locked." |
| 599 |
msgstr "Le mutex est déjà verrouillé." |
| 600 |
|
| 601 |
#. type: SH |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
#, no-wrap |
| 605 |
msgid "SEE ALSO" |
| 606 |
msgstr "VOIR AUSSI" |
| 607 |
|
| 608 |
#. type: Plain text |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
msgid "" |
| 612 |
"B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " |
| 613 |
"B<pthread_cancel>(3)." |
| 614 |
msgstr "" |
| 615 |
"B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " |
| 616 |
"B<pthread_cancel>(3)." |
| 617 |
|
| 618 |
#. type: SH |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
#, no-wrap |
| 622 |
msgid "EXAMPLE" |
| 623 |
msgstr "EXEMPLE" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "A shared global variable I<x> can be protected by a mutex as follows:" |
| 629 |
msgstr "" |
| 630 |
"Une variable globale partagée I<x> peut être protégée par un mutex comme " |
| 631 |
"suit\\ :" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
#, no-wrap |
| 637 |
msgid "" |
| 638 |
"B<int x;\n" |
| 639 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 640 |
msgstr "" |
| 641 |
"B<int x;\n" |
| 642 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 646 |
#: opensuse-tumbleweed |
| 647 |
#, fuzzy |
| 648 |
#| msgid "" |
| 649 |
#| "All accesses and modifications to I<x> should be bracketed by calls to " |
| 650 |
#| "B<pthread_mutex_lock> and B<pthread_mutex_unlock> as follows:" |
| 651 |
msgid "" |
| 652 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 653 |
"B<pthread_mutex_lock>() and B<pthread_mutex_unlock>() as follows:" |
| 654 |
msgstr "" |
| 655 |
"Tous les accès et modifications de I<x> doivent être entourés de paires " |
| 656 |
"d'appels à B<pthread_mutex_lock>() et B<pthread_mutex_unlock>() comme " |
| 657 |
"suit\\ :" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
#, no-wrap |
| 663 |
msgid "" |
| 664 |
"B<pthread_mutex_lock(&mut);\n" |
| 665 |
"/* operate on x */\n" |
| 666 |
"pthread_mutex_unlock(&mut);>\n" |
| 667 |
msgstr "" |
| 668 |
"B<pthread_mutex_lock(&mut);\n" |
| 669 |
"/* operate on x */\n" |
| 670 |
"pthread_mutex_unlock(&mut);>\n" |
| 671 |
|
| 672 |
#. type: TH |
| 673 |
#: debian-trixie fedora-44 fedora-rawhide |
| 674 |
#, no-wrap |
| 675 |
msgid "2024-06-16" |
| 676 |
msgstr "16 juin 2024" |
| 677 |
|
| 678 |
#. type: TH |
| 679 |
#: debian-trixie |
| 680 |
#, no-wrap |
| 681 |
msgid "Linux man-pages 6.9.1" |
| 682 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 683 |
|
| 684 |
#. type: Plain text |
| 685 |
#: debian-trixie fedora-44 fedora-rawhide |
| 686 |
msgid "" |
| 687 |
"B<pthread_mutex_init> initializes the mutex object pointed to by I<mutex> " |
| 688 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 689 |
"I<mutexattr> is B<NULL>, default attributes are used instead." |
| 690 |
msgstr "" |
| 691 |
"B<pthread_mutex_init>() initialise le mutex pointé par I<mutex> selon les " |
| 692 |
"attributs de mutex spécifié par I<mutexattr>. Si I<mutexattr> vaut NULL, les " |
| 693 |
"paramètres par défaut sont utilisés." |
| 694 |
|
| 695 |
#. type: Plain text |
| 696 |
#: debian-trixie fedora-44 fedora-rawhide |
| 697 |
msgid "" |
| 698 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 699 |
"I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " |
| 700 |
"checking''. The kind of a mutex determines whether it can be locked again " |
| 701 |
"by a thread that already owns it. The default kind is ``fast''. See " |
| 702 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 703 |
msgstr "" |
| 704 |
"L'implémentation LinuxThreads ne gère qu'un seul attribut, le I<type de " |
| 705 |
"mutex>, qui peut être soit «\\ rapide\\ », «\\ récursif\\ » ou à «\\ " |
| 706 |
"vérification d'erreur\\ ». Le type de mutex détermine s'il peut être " |
| 707 |
"verrouillé plusieurs fois par le même thread. Le type par défaut est «\\ " |
| 708 |
"rapide\\ ». Voyez B<pthread_mutexattr_init>(3) pour plus d'informations sur " |
| 709 |
"les attributs de mutex." |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: debian-trixie fedora-44 fedora-rawhide |
| 713 |
msgid "" |
| 714 |
"Variables of type B<pthread_mutex_t> can also be initialized statically, " |
| 715 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 716 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 717 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 718 |
msgstr "" |
| 719 |
"Les variables de type B<pthread_mutex_t> peuvent aussi être initialisées de " |
| 720 |
"manière statique, en utilisant les constantes B<PTHREAD_MUTEX_INITIALIZER> " |
| 721 |
"(pour les mutex «\\ rapides\\ »), B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> " |
| 722 |
"(pour les mutex «\\ récursifs\\ ») et " |
| 723 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (pour les mutex à «\\ " |
| 724 |
"vérification d'erreur\\ »)." |
| 725 |
|
| 726 |
#. type: Plain text |
| 727 |
#: debian-trixie fedora-44 fedora-rawhide |
| 728 |
msgid "" |
| 729 |
"B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " |
| 730 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 731 |
"B<pthread_mutex_lock> returns immediately. If the mutex is already locked " |
| 732 |
"by another thread, B<pthread_mutex_lock> suspends the calling thread until " |
| 733 |
"the mutex is unlocked." |
| 734 |
msgstr "" |
| 735 |
"B<pthread_mutex_lock>() verrouille le mutex. Si le mutex est déverrouillé, " |
| 736 |
"il devient verrouillé et il est possédé par le thread appelant et " |
| 737 |
"B<pthread_mutex_lock>() rend la main immédiatement. Si le mutex est déjà " |
| 738 |
"verrouillé par un autre thread, B<pthread_mutex_lock> suspend le thread " |
| 739 |
"appelant jusqu'à ce que le mutex soit déverrouillé." |
| 740 |
|
| 741 |
#. type: Plain text |
| 742 |
#: debian-trixie fedora-44 fedora-rawhide |
| 743 |
msgid "" |
| 744 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 745 |
"B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is of " |
| 746 |
"the ``fast'' kind, the calling thread is suspended until the mutex is " |
| 747 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 748 |
"mutex is of the ``error checking'' kind, B<pthread_mutex_lock> returns " |
| 749 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 750 |
"``recursive'' kind, B<pthread_mutex_lock> succeeds and returns immediately, " |
| 751 |
"recording the number of times the calling thread has locked the mutex. An " |
| 752 |
"equal number of B<pthread_mutex_unlock> operations must be performed before " |
| 753 |
"the mutex returns to the unlocked state." |
| 754 |
msgstr "" |
| 755 |
"Si le mutex est déjà verrouillé par le thread appelant, le comportement de " |
| 756 |
"B<pthread_mutex_lock>() dépend du type du mutex. Si ce dernier est de type " |
| 757 |
"«\\ rapide\\ », le thread appelant est suspendu jusqu'à ce que le mutex soit " |
| 758 |
"déverrouillé, plaçant ainsi le thread appelant en situation de blocage " |
| 759 |
"définitif. Si le mutex est de type «\\ vérification d'erreur\\ », " |
| 760 |
"B<pthread_mutex_lock>() rend la main immédiatement avec le code d'erreur " |
| 761 |
"B<EDEADLK>. Si le mutex est de type «\\ récursif\\ », " |
| 762 |
"B<pthread_mutex_lock>() rend la main immédiatement avec un code de retour " |
| 763 |
"indiquant le succès, enregistrant le nombre de fois où le thread appelant a " |
| 764 |
"verrouillé le mutex. Un nombre égal d'appels à B<pthread_mutex_unlock>() " |
| 765 |
"doit être réalisé avant que le mutex retourne à l'état déverrouillé." |
| 766 |
|
| 767 |
#. type: Plain text |
| 768 |
#: debian-trixie fedora-44 fedora-rawhide |
| 769 |
msgid "" |
| 770 |
"B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " |
| 771 |
"except that it does not block the calling thread if the mutex is already " |
| 772 |
"locked by another thread (or by the calling thread in the case of a ``fast'' " |
| 773 |
"mutex). Instead, B<pthread_mutex_trylock> returns immediately with the " |
| 774 |
"error code B<EBUSY>." |
| 775 |
msgstr "" |
| 776 |
"B<pthread_mutex_trylock>() se comporte de la même manière que " |
| 777 |
"B<pthread_mutex_lock>(), excepté qu'elle ne bloque pas le thread appelant si " |
| 778 |
"le mutex est déjà verrouillé par un autre thread (ou par le thread appelant " |
| 779 |
"dans le cas d'un mutex «\\ rapide\\ »). Au contraire, " |
| 780 |
"B<pthread_mutex_trylock>() rend la main immédiatement avec le code d'erreur " |
| 781 |
"B<EBUSY>." |
| 782 |
|
| 783 |
#. type: Plain text |
| 784 |
#: debian-trixie fedora-44 fedora-rawhide |
| 785 |
msgid "" |
| 786 |
"B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to be " |
| 787 |
"locked and owned by the calling thread on entrance to " |
| 788 |
"B<pthread_mutex_unlock>. If the mutex is of the ``fast'' kind, " |
| 789 |
"B<pthread_mutex_unlock> always returns it to the unlocked state. If it is " |
| 790 |
"of the ``recursive'' kind, it decrements the locking count of the mutex " |
| 791 |
"(number of B<pthread_mutex_lock> operations performed on it by the calling " |
| 792 |
"thread), and only when this count reaches zero is the mutex actually " |
| 793 |
"unlocked." |
| 794 |
msgstr "" |
| 795 |
"B<pthread_mutex_unlock>() déverrouille le mutex. Celui-ci est supposé " |
| 796 |
"verrouillé, et ce par le thread courant en entrant dans " |
| 797 |
"B<pthread_mutex_unlock>(). Si le mutex est de type «\\ rapide\\ », " |
| 798 |
"B<pthread_mutex_unlock>() le réinitialise toujours à l'état déverrouillé. " |
| 799 |
"S'il est de type «\\ récursif\\ », son compteur de verrouillage est " |
| 800 |
"décrémenté (du nombre d'opérations B<pthread_mutex_lock>() réalisées sur le " |
| 801 |
"mutex par le thread appelant), et déverrouillé seulement quand ce compteur " |
| 802 |
"atteint 0." |
| 803 |
|
| 804 |
#. type: Plain text |
| 805 |
#: debian-trixie fedora-44 fedora-rawhide |
| 806 |
msgid "" |
| 807 |
"On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " |
| 808 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 809 |
"it was locked by the same thread that is now calling " |
| 810 |
"B<pthread_mutex_unlock>. If these conditions are not met, an error code is " |
| 811 |
"returned and the mutex remains unchanged. ``Fast'' mutexes perform no such " |
| 812 |
"checks, thus allowing a locked mutex to be unlocked by a thread other than " |
| 813 |
"its owner. This is non-portable behavior and must not be relied upon." |
| 814 |
msgstr "" |
| 815 |
"Sur les mutex «\\ vérification d'erreur\\ » et « récursif », " |
| 816 |
"B<pthread_mutex_unlock>() vérifie lors de l'exécution que le mutex est " |
| 817 |
"verrouillé en entrant, et qu'il est verrouillé par le même thread que celui " |
| 818 |
"appelant B<pthread_mutex_unlock>() Si ces conditions ne sont pas réunies, un " |
| 819 |
"code d'erreur est renvoyé et le mutex n'est pas modifié. Les mutex «\\ " |
| 820 |
"rapides\\ » ne réalisent pas de tels tests, permettant à un mutex verrouillé " |
| 821 |
"d'être déverrouillé par un thread autre que celui l'ayant verrouillé. Ce " |
| 822 |
"comportement n'est pas portable et l'on ne doit pas compter dessus." |
| 823 |
|
| 824 |
#. type: Plain text |
| 825 |
#: debian-trixie fedora-44 fedora-rawhide |
| 826 |
msgid "" |
| 827 |
"B<pthread_mutex_destroy> destroys a mutex object, freeing the resources it " |
| 828 |
"might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 829 |
"implementation, no resources are associated with mutex objects, thus " |
| 830 |
"B<pthread_mutex_destroy> actually does nothing except checking that the " |
| 831 |
"mutex is unlocked." |
| 832 |
msgstr "" |
| 833 |
"B<pthread_mutex_destroy>() détruit un mutex, libérant les ressources qu'il " |
| 834 |
"détient. Le mutex doit être déverrouillé. Dans l'implémentation " |
| 835 |
"LinuxThreads, aucune ressource ne peut être associée à un mutex, aussi " |
| 836 |
"B<pthread_mutex_destroy>() ne fait rien si ce n'est vérifier que le mutex " |
| 837 |
"n'est pas verrouillé." |
| 838 |
|
| 839 |
#. type: Plain text |
| 840 |
#: debian-trixie fedora-44 fedora-rawhide |
| 841 |
msgid "" |
| 842 |
"None of the mutex functions is a cancelation point, not even " |
| 843 |
"B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " |
| 844 |
"arbitrary durations. This way, the status of mutexes at cancelation points " |
| 845 |
"is predictable, allowing cancelation handlers to unlock precisely those " |
| 846 |
"mutexes that need to be unlocked before the thread stops executing. " |
| 847 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 848 |
"for extended periods of time." |
| 849 |
msgstr "" |
| 850 |
"Aucune des primitives relatives aux mutex n'est un point d'annulation, ni " |
| 851 |
"même B<pthread_mutex_lock>(), malgré le fait qu'il peut suspendre " |
| 852 |
"l'exécution du thread pour une longue durée. De cette manière, l'état des " |
| 853 |
"mutex aux points d'annulation est prévisible, permettant aux gestionnaires " |
| 854 |
"d'annulation de déverrouiller précisément ces mutex qui nécessitent d'être " |
| 855 |
"déverrouillés avant que l'exécution du thread ne s'arrête définitivement. " |
| 856 |
"Aussi, les threads travaillant en mode d'annulation retardée ne doivent-" |
| 857 |
"jamais verrouiller un mutex pour de longues périodes de temps." |
| 858 |
|
| 859 |
#. type: Plain text |
| 860 |
#: debian-trixie fedora-44 fedora-rawhide |
| 861 |
msgid "" |
| 862 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 863 |
"should not be called from a signal handler. In particular, calling " |
| 864 |
"B<pthread_mutex_lock> or B<pthread_mutex_unlock> from a signal handler may " |
| 865 |
"deadlock the calling thread." |
| 866 |
msgstr "" |
| 867 |
"Les fonctions relatives aux mutex ne sont pas fiables par rapport aux " |
| 868 |
"signaux asynchrones et ne doivent donc pas être utilisées dans des " |
| 869 |
"gestionnaires de signaux. En particulier, appeler B<pthread_mutex_lock>() ou " |
| 870 |
"B<pthread_mutex_unlock>() dans un gestionnaire de signal peut placer le " |
| 871 |
"thread appelant dans une situation de blocage définitif." |
| 872 |
|
| 873 |
#. type: Plain text |
| 874 |
#: debian-trixie fedora-44 fedora-rawhide |
| 875 |
msgid "" |
| 876 |
"B<pthread_mutex_init> always returns 0. The other mutex functions return 0 " |
| 877 |
"on success and a non-zero error code on error." |
| 878 |
msgstr "" |
| 879 |
"B<pthread_mutex_init>() retourne toujours 0. Les autres fonctions renvoient " |
| 880 |
"0 en cas de succès et un code d'erreur non nul en cas de problème." |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: debian-trixie fedora-44 fedora-rawhide |
| 884 |
msgid "" |
| 885 |
"The B<pthread_mutex_lock> function returns the following error code on error:" |
| 886 |
msgstr "" |
| 887 |
"La fonction B<pthread_mutex_lock>() renvoie l'un des codes d'erreur suivants " |
| 888 |
"en cas de problème\\ :" |
| 889 |
|
| 890 |
#. type: Plain text |
| 891 |
#: debian-trixie fedora-44 fedora-rawhide |
| 892 |
msgid "" |
| 893 |
"The mutex is already locked by the calling thread (``error checking'' " |
| 894 |
"mutexes only)." |
| 895 |
msgstr "" |
| 896 |
"Le mutex est déjà verrouillé par le thread appelant (mutex à «\\ " |
| 897 |
"vérification d'erreur\\ » seulement)." |
| 898 |
|
| 899 |
#. type: Plain text |
| 900 |
#: debian-trixie fedora-44 fedora-rawhide |
| 901 |
msgid "" |
| 902 |
"The B<pthread_mutex_trylock> function returns the following error codes on " |
| 903 |
"error:" |
| 904 |
msgstr "" |
| 905 |
"La fonction B<pthread_mutex_trylock>() renvoie l'un des codes d'erreur " |
| 906 |
"suivants en cas de problème\\ :" |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: debian-trixie fedora-44 fedora-rawhide |
| 910 |
msgid "" |
| 911 |
"The B<pthread_mutex_unlock> function returns the following error code on " |
| 912 |
"error:" |
| 913 |
msgstr "" |
| 914 |
"La fonction B<pthread_mutex_unlock>() renvoie le code d'erreur suivant en " |
| 915 |
"cas de problème\\ :" |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: debian-trixie fedora-44 fedora-rawhide |
| 919 |
msgid "" |
| 920 |
"The calling thread does not own the mutex (``error checking'' mutexes only)." |
| 921 |
msgstr "" |
| 922 |
"Le thread appelant ne possède pas le mutex (mutex à «\\ vérification " |
| 923 |
"d'erreur\\ » seulement)." |
| 924 |
|
| 925 |
#. type: Plain text |
| 926 |
#: debian-trixie fedora-44 fedora-rawhide |
| 927 |
msgid "" |
| 928 |
"The B<pthread_mutex_destroy> function returns the following error code on " |
| 929 |
"error:" |
| 930 |
msgstr "" |
| 931 |
"La fonction B<pthread_mutex_destroy>() renvoie le code d'erreur suivant en " |
| 932 |
"cas de problème\\ :" |
| 933 |
|
| 934 |
#. type: Plain text |
| 935 |
#: debian-trixie fedora-44 fedora-rawhide |
| 936 |
msgid "" |
| 937 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 938 |
"B<pthread_mutex_lock> and B<pthread_mutex_unlock> as follows:" |
| 939 |
msgstr "" |
| 940 |
"Tous les accès et modifications de I<x> doivent être entourés de paires " |
| 941 |
"d'appels à B<pthread_mutex_lock>() et B<pthread_mutex_unlock>() comme " |
| 942 |
"suit\\ :" |
| 943 |
|
| 944 |
#. type: TH |
| 945 |
#: fedora-44 fedora-rawhide |
| 946 |
#, no-wrap |
| 947 |
msgid "Linux man-pages 6.13" |
| 948 |
msgstr "Pages du manuel de Linux 6.13" |
| 949 |
|
| 950 |
#. type: TH |
| 951 |
#: mageia-cauldron |
| 952 |
#, no-wrap |
| 953 |
msgid "Linux man-pages 6.17" |
| 954 |
msgstr "Pages du manuel de Linux 6.17" |
| 955 |
|
| 956 |
#. type: TH |
| 957 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 958 |
#, no-wrap |
| 959 |
msgid "Linux man-pages (unreleased)" |
| 960 |
msgstr "Pages du manuel de Linux (non publiées)" |