Debian Codegraph @

po/fr/man3/pthread_cond_init.3.po

raw
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 09:18+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_cond_init"
32 msgstr "pthread_cond_init"
33
34 #. type: TH
35 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-03-22"
38 msgstr "22 mars 2026"
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, no-wrap
43 msgid "Linux man-pages 6.18"
44 msgstr "Pages du manuel de Linux 6.18"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "NOM"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid ""
57 "pthread_cond_init, pthread_cond_signal, pthread_cond_broadcast, "
58 "pthread_cond_wait, pthread_cond_timedwait, pthread_cond_destroy - operations "
59 "on conditions"
60 msgstr ""
61 "pthread_cond_init, pthread_cond_signal, pthread_cond_broadcast, "
62 "pthread_cond_wait, pthread_cond_timedwait, pthread_cond_destroy - Opérations "
63 "sur les conditions"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr "SYNOPSIS"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>pthread.hE<gt>>\n"
77 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<pthread_cond_t >I<cond>B< = PTHREAD_COND_INITIALIZER;>\n"
84 msgstr "B<pthread_cond_t >I<cond>B< = PTHREAD_COND_INITIALIZER;>\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<int pthread_cond_init(pthread_cond_t *>I<cond>B<,>\n"
92 "B< pthread_condattr_t *>I<cond_attr>B<);>\n"
93 "B<int pthread_cond_signal(pthread_cond_t *>I<cond>B<);>\n"
94 "B<int pthread_cond_broadcast(pthread_cond_t *>I<cond>B<);>\n"
95 "B<int pthread_cond_wait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<);>\n"
96 "B<int pthread_cond_timedwait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<,>\n"
97 "B< const struct timespec *>I<abstime>B<);>\n"
98 "B<int pthread_cond_destroy(pthread_cond_t *>I<cond>B<);>\n"
99 msgstr ""
100 "B<int pthread_cond_init(pthread_cond_t *>I<cond>B<,>\n"
101 "B< pthread_condattr_t *>I<cond_attr>B<);>\n"
102 "B<int pthread_cond_signal(pthread_cond_t *>I<cond>B<);>\n"
103 "B<int pthread_cond_broadcast(pthread_cond_t *>I<cond>B<);>\n"
104 "B<int pthread_cond_wait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<);>\n"
105 "B<int pthread_cond_timedwait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<,>\n"
106 "B< const struct timespec *>I<abstime>B<);>\n"
107 "B<int pthread_cond_destroy(pthread_cond_t *>I<cond>B<);>\n"
108
109 #. type: SH
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid "DESCRIPTION"
114 msgstr "DESCRIPTION"
115
116 #. type: Plain text
117 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
118 #: opensuse-tumbleweed
119 #, fuzzy
120 #| msgid ""
121 #| "A condition (short for ``condition variable'') is a synchronization "
122 #| "device that allows threads to suspend execution and relinquish the "
123 #| "processors until some predicate on shared data is satisfied. The basic "
124 #| "operations on conditions are: signal the condition (when the predicate "
125 #| "becomes true), and wait for the condition, suspending the thread "
126 #| "execution until another thread signals the condition."
127 msgid ""
128 "A condition (short for \"condition variable\") is a synchronization device "
129 "that allows threads to suspend execution and relinquish the processors until "
130 "some predicate on shared data is satisfied. The basic operations on "
131 "conditions are: signal the condition (when the predicate becomes true), and "
132 "wait for the condition, suspending the thread execution until another thread "
133 "signals the condition."
134 msgstr ""
135 "Une condition (abréviation pour «\\ variable condition\\ ») est un mécanisme "
136 "de synchronisation permettant à un thread de suspendre son exécution jusqu'à "
137 "ce qu'une certaine condition (un prédicat) sur des données partagées soit "
138 "vérifiée. Les opérations fondamentales sur les conditions sont\\ : signaler "
139 "la condition (quand le prédicat devient vrai) et attendre la condition en "
140 "suspendant l'exécution du thread jusqu'à ce qu'un autre thread signale la "
141 "condition."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "A condition variable must always be associated with a mutex, to avoid the "
148 "race condition where a thread prepares to wait on a condition variable and "
149 "another thread signals the condition just before the first thread actually "
150 "waits on it."
151 msgstr ""
152 "Une variable condition doit toujours être associée à un mutex, pour éviter "
153 "une condition concurrente où un thread se prépare à attendre une condition "
154 "et un autre thread signale la condition juste avant que le premier n'attende "
155 "réellement."
156
157 #. type: Plain text
158 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
159 #: opensuse-tumbleweed
160 #, fuzzy
161 #| msgid ""
162 #| "B<pthread_cond_init> initializes the condition variable I<cond>, using "
163 #| "the condition attributes specified in I<cond_attr>, or default attributes "
164 #| "if I<cond_attr> is B<NULL>. The LinuxThreads implementation supports no "
165 #| "attributes for conditions, hence the I<cond_attr> parameter is actually "
166 #| "ignored."
167 msgid ""
168 "B<pthread_cond_init>() initializes the condition variable I<cond>, using "
169 "the condition attributes specified in I<cond_attr>, or default attributes if "
170 "I<cond_attr> is NULL. The LinuxThreads implementation supports no "
171 "attributes for conditions, hence the I<cond_attr> parameter is actually "
172 "ignored."
173 msgstr ""
174 "B<pthread_cond_init>() initialise la variable condition I<cond>, en "
175 "utilisant les attributs de condition spécifiés par I<cond_attr>, ou les "
176 "attributs par défaut si I<cond_attr> vaut NULL. L'implémentation "
177 "LinuxThreads ne supporte aucun attribut de condition, aussi le paramètre "
178 "I<cond_attr> est pour l'instant ignoré."
179
180 #. type: Plain text
181 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
182 #: opensuse-tumbleweed
183 #, fuzzy
184 #| msgid ""
185 #| "Variables of type B<pthread_cond_t> can also be initialized statically, "
186 #| "using the constant B<PTHREAD_COND_INITIALIZER>."
187 msgid ""
188 "Variables of type I<pthread_cond_t> can also be initialized statically, "
189 "using the constant B<PTHREAD_COND_INITIALIZER>."
190 msgstr ""
191 "Les variables de type B<pthread_cond_t> peuvent également être statiquement "
192 "initialisées, en utilisant la constante B<PTHREAD_COND_INITIALIZER>."
193
194 #. type: Plain text
195 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 #, fuzzy
198 #| msgid ""
199 #| "B<pthread_cond_signal> restarts one of the threads that are waiting on "
200 #| "the condition variable I<cond>. If no threads are waiting on I<cond>, "
201 #| "nothing happens. If several threads are waiting on I<cond>, exactly one "
202 #| "is restarted, but it is not specified which."
203 msgid ""
204 "B<pthread_cond_signal>() restarts one of the threads that are waiting on "
205 "the condition variable I<cond>. If no threads are waiting on I<cond>, "
206 "nothing happens. If several threads are waiting on I<cond>, exactly one is "
207 "restarted, but it is not specified which."
208 msgstr ""
209 "B<pthread_cond_signal>() relance l'un des threads attendant la variable "
210 "condition I<cond>. S'il n'existe aucun thread répondant à ce critère, rien "
211 "ne se produit. Si plusieurs threads attendent sur I<cond>, seul l'un d'entre "
212 "eux sera relancé, mais il est impossible de savoir lequel."
213
214 #. type: Plain text
215 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
216 #: opensuse-tumbleweed
217 #, fuzzy
218 #| msgid ""
219 #| "B<pthread_cond_broadcast> restarts all the threads that are waiting on "
220 #| "the condition variable I<cond>. Nothing happens if no threads are "
221 #| "waiting on I<cond>."
222 msgid ""
223 "B<pthread_cond_broadcast>() restarts all the threads that are waiting on "
224 "the condition variable I<cond>. Nothing happens if no threads are waiting "
225 "on I<cond>."
226 msgstr ""
227 "B<pthread_cond_broadcast>() relance tous les threads attendant sur la "
228 "variable condition I<cond>. Rien ne se passe s'il n'y a aucun thread "
229 "attendant sur I<cond>."
230
231 #. type: Plain text
232 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
233 #, fuzzy
234 #| msgid ""
235 #| "B<pthread_cond_wait> atomically unlocks the I<mutex> (as per "
236 #| "B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to "
237 #| "be signaled. The thread execution is suspended and does not consume any "
238 #| "CPU time until the condition variable is signaled. The I<mutex> must be "
239 #| "locked by the calling thread on entrance to B<pthread_cond_wait>. Before "
240 #| "returning to the calling thread, B<pthread_cond_wait> re-acquires "
241 #| "I<mutex> (as per B<pthread_lock_mutex>)."
242 msgid ""
243 "B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per "
244 "B<pthread_mutex_unlock>()) and waits for the condition variable I<cond> to "
245 "be signaled. The thread execution is suspended and does not consume any CPU "
246 "time until the condition variable is signaled. The I<mutex> must be locked "
247 "by the calling thread on entrance to B<pthread_cond_wait>(). Before "
248 "returning to the calling thread, B<pthread_cond_wait>() re-acquires "
249 "I<mutex> (as per B<pthread_mutex_lock>())."
250 msgstr ""
251 "B<pthread_cond_wait>() déverrouille atomiquement le I<mutex> (comme "
252 "B<pthread_unlock_mutex>()) et attend que la variable condition I<cond> soit "
253 "signalée. L'exécution du thread est suspendue et ne consomme pas de temps "
254 "CPU jusqu'à ce que la variable condition soit signalée. Le I<mutex> doit "
255 "être verrouillé par le thread appelant à l'entrée de B<pthread_cond_wait>(). "
256 "Avant de rendre la main au thread appelant, B<pthread_cond_wait>() "
257 "reverrouille I<mutex> (comme B<pthread_lock_mutex>())."
258
259 #. type: Plain text
260 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
261 #: opensuse-tumbleweed
262 #, fuzzy
263 #| msgid ""
264 #| "Unlocking the mutex and suspending on the condition variable is done "
265 #| "atomically. Thus, if all threads always acquire the mutex before "
266 #| "signaling the condition, this guarantees that the condition cannot be "
267 #| "signaled (and thus ignored) between the time a thread locks the mutex "
268 #| "and the time it waits on the condition variable."
269 msgid ""
270 "Unlocking the mutex and suspending on the condition variable is done "
271 "atomically. Thus, if all threads always acquire the mutex before signaling "
272 "the condition, this guarantees that the condition cannot be signaled (and "
273 "thus ignored) between the time a thread locks the mutex and the time it "
274 "waits on the condition variable. See CAVEATS below."
275 msgstr ""
276 "Le déverrouillage du mutex et la suspension de l'exécution sur la variable "
277 "condition sont liés atomiquement. Donc, si tous les threads verrouillent le "
278 "mutex avant de signaler la condition, il est garanti que la condition ne "
279 "peut être signalée (et donc ignorée) entre le moment où un thread verrouille "
280 "le mutex et le moment où il attend sur la variable condition."
281
282 #. type: Plain text
283 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
284 #: opensuse-tumbleweed
285 #, fuzzy
286 #| msgid ""
287 #| "B<pthread_cond_timedwait> atomically unlocks I<mutex> and waits on "
288 #| "I<cond>, as B<pthread_cond_wait> does, but it also bounds the duration of "
289 #| "the wait. If I<cond> has not been signaled within the amount of time "
290 #| "specified by I<abstime>, the mutex I<mutex> is re-acquired and "
291 #| "B<pthread_cond_timedwait> returns the error B<ETIMEDOUT>. The I<abstime> "
292 #| "parameter specifies an absolute time, with the same origin as B<time>(2) "
293 #| "and B<gettimeofday>(2): an I<abstime> of 0 corresponds to 00:00:00 GMT, "
294 #| "January 1, 1970."
295 msgid ""
296 "B<pthread_cond_timedwait>() atomically unlocks I<mutex> and waits on "
297 "I<cond>, as B<pthread_cond_wait>() does, but it also bounds the duration of "
298 "the wait. If I<cond> has not been signaled within the amount of time "
299 "specified by I<abstime>, the mutex I<mutex> is re-acquired and "
300 "B<pthread_cond_timedwait>() returns the error B<ETIMEDOUT>. The I<abstime> "
301 "parameter specifies an absolute time, with the same origin as B<time>(2) "
302 "and B<gettimeofday>(2): an I<abstime> of 0 corresponds to 00:00:00 GMT, "
303 "January 1, 1970."
304 msgstr ""
305 "B<pthread_cond_timedwait>() déverrouille le I<mutex> et attend sur I<cond>, "
306 "en liant atomiquement ces deux étapes, comme le fait B<pthread_cond_wait>(), "
307 "cependant l'attente est bornée temporellement. Si I<cond> n'a pas été "
308 "signalée après la période spécifiée par I<abstime>, le mutex I<mutex> est "
309 "reverrouillé et B<pthread_cond_timedwait>() rend la main avec l'erreur "
310 "B<ETIMEDOUT>. Le paramètre I<abstime> spécifie un temps absolu, avec la même "
311 "origine que B<time>(2) et B<gettimeofday>(2)\\ : un I<abstime> de 0 "
312 "correspond à 00:00:00 GMT, le 1er Janvier 1970."
313
314 #. type: Plain text
315 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
316 #: opensuse-tumbleweed
317 #, fuzzy
318 #| msgid ""
319 #| "B<pthread_cond_destroy> destroys a condition variable, freeing the "
320 #| "resources it might hold. No threads must be waiting on the condition "
321 #| "variable on entrance to B<pthread_cond_destroy>. In the LinuxThreads "
322 #| "implementation, no resources are associated with condition variables, "
323 #| "thus B<pthread_cond_destroy> actually does nothing except checking that "
324 #| "the condition has no waiting threads."
325 msgid ""
326 "B<pthread_cond_destroy>() destroys a condition variable, freeing the "
327 "resources it might hold. No threads must be waiting on the condition "
328 "variable on entrance to B<pthread_cond_destroy>(). In the LinuxThreads "
329 "implementation, no resources are associated with condition variables, thus "
330 "B<pthread_cond_destroy>() actually does nothing except checking that the "
331 "condition has no waiting threads."
332 msgstr ""
333 "B<pthread_cond_destroy>() détruit une variable condition, libérant les "
334 "ressources qu'elle possède. Aucun thread ne doit attendre sur la condition à "
335 "l'entrée de B<pthread_cond_destroy>(). Dans l'implémentation LinuxThreads, "
336 "aucune ressource ne peut être associée à une variable condition, aussi "
337 "B<pthread_cond_destroy>() ne fait en fait rien d'autre que vérifier qu'aucun "
338 "thread n'attend la condition."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "CANCELLATION"
345 msgstr "ANNULATION"
346
347 #. type: Plain text
348 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
349 #: opensuse-tumbleweed
350 #, fuzzy
351 #| msgid ""
352 #| "B<pthread_cond_wait> and B<pthread_cond_timedwait> are cancelation "
353 #| "points. If a thread is cancelled while suspended in one of these "
354 #| "functions, the thread immediately resumes execution, then locks again the "
355 #| "I<mutex> argument to B<pthread_cond_wait> and B<pthread_cond_timedwait>, "
356 #| "and finally executes the cancelation. Consequently, cleanup handlers are "
357 #| "assured that I<mutex> is locked when they are called."
358 msgid ""
359 "B<pthread_cond_wait>() and B<pthread_cond_timedwait>() are cancelation "
360 "points. If a thread is cancelled while suspended in one of these functions, "
361 "the thread immediately resumes execution, then locks again the I<mutex> "
362 "argument to B<pthread_cond_wait>() and B<pthread_cond_timedwait>(), and "
363 "finally executes the cancelation. Consequently, cleanup handlers are "
364 "assured that I<mutex> is locked when they are called."
365 msgstr ""
366 "B<pthread_cond_wait>() et B<pthread_cond_timedwait>() sont des points "
367 "d'annulation. Si un thread est annulé alors qu'il est suspendu dans l'une de "
368 "ces fonctions, son exécution reprend immédiatement, reverrouillant le "
369 "paramètre I<mutex> à B<pthread_cond_wait>() et B<pthread_cond_timedwait>(), "
370 "et exécute finalement l'annulation. Aussi, les gestionnaires d'annulation "
371 "sont assurés que I<mutex> est verrouillé lorsqu'ils sont exécutés."
372
373 #. type: SH
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "ASYNC-SIGNAL SAFETY"
378 msgstr "ASYNC-SIGNAL SAFETY"
379
380 #. type: Plain text
381 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
382 #: opensuse-tumbleweed
383 #, fuzzy
384 #| msgid ""
385 #| "The condition functions are not async-signal safe, and should not be "
386 #| "called from a signal handler. In particular, calling "
387 #| "B<pthread_cond_signal> or B<pthread_cond_broadcast> from a signal handler "
388 #| "may deadlock the calling thread."
389 msgid ""
390 "The condition functions are not async-signal safe, and should not be called "
391 "from a signal handler. In particular, calling B<pthread_cond_signal>() or "
392 "B<pthread_cond_broadcast>() from a signal handler may deadlock the calling "
393 "thread."
394 msgstr ""
395 "Ces fonctions ne sont pas fiables par rapport aux signaux asynchrones et ne "
396 "doivent donc pas être utilisées dans des gestionnaires de signaux [NdT\\ : "
397 "sous peine de perdre leur propriété d'atomicité]. En particulier, appeler "
398 "B<pthread_cond_signal>() ou B<pthread_cond_broadcast>() dans un gestionnaire "
399 "de signal peut placer le thread appelant dans une situation de blocage "
400 "définitif."
401
402 #. type: SH
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "RETURN VALUE"
407 msgstr "VALEUR RENVOYÉE"
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid ""
413 "All condition variable functions return 0 on success and a non-zero error "
414 "code on error."
415 msgstr ""
416 "Toutes ces fonctions renvoient 0 en cas de succès et un code d'erreur non "
417 "nul en cas de problème."
418
419 #. type: SH
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "ERRORS"
424 msgstr "ERREURS"
425
426 #. type: Plain text
427 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
428 #: opensuse-tumbleweed
429 #, fuzzy
430 #| msgid ""
431 #| "B<pthread_cond_init>, B<pthread_cond_signal>, B<pthread_cond_broadcast>, "
432 #| "and B<pthread_cond_wait> never return an error code."
433 msgid ""
434 "B<pthread_cond_init>(), B<pthread_cond_signal>(), "
435 "B<pthread_cond_broadcast>(), and B<pthread_cond_wait>() never return an "
436 "error code."
437 msgstr ""
438 "B<pthread_cond_init>(), B<pthread_cond_signal>(), "
439 "B<pthread_cond_broadcast>() et B<pthread_cond_wait>() ne renvoient jamais de "
440 "code d'erreur."
441
442 #. type: Plain text
443 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
444 #: opensuse-tumbleweed
445 #, fuzzy
446 #| msgid ""
447 #| "The B<pthread_cond_timedwait> function returns the following error codes "
448 #| "on error:"
449 msgid ""
450 "The B<pthread_cond_timedwait>() function returns the following error codes "
451 "on error:"
452 msgstr ""
453 "La fonction B<pthread_cond_timedwait>() renvoie l'un des codes d'erreur "
454 "suivants en cas de problème\\ :"
455
456 #. type: TP
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "B<ETIMEDOUT>"
461 msgstr "B<ETIMEDOUT>"
462
463 #. type: Plain text
464 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
465 #: opensuse-tumbleweed
466 #, fuzzy
467 #| msgid ""
468 #| "The condition variable was not signaled until the timeout specified by "
469 #| "I<abstime>."
470 msgid ""
471 "The condition variable was not signaled until the timeout specified by "
472 "I<abstime .>"
473 msgstr ""
474 "La variable condition n'a pas reçu de signal avant le délai spécifié par "
475 "I<abstime>."
476
477 #. type: Plain text
478 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
479 #: opensuse-tumbleweed
480 #, fuzzy
481 #| msgid ""
482 #| "The B<pthread_cond_destroy> function returns the following error code on "
483 #| "error:"
484 msgid ""
485 "The B<pthread_cond_destroy>() function returns the following error code on "
486 "error:"
487 msgstr ""
488 "La fonction B<pthread_cond_destroy>() renvoie le code d'erreur suivant en "
489 "cas de problème\\ :"
490
491 #. type: TP
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<EBUSY>"
496 msgstr "B<EBUSY>"
497
498 #. type: Plain text
499 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
500 #: opensuse-tumbleweed
501 #, fuzzy
502 #| msgid "Some threads are currently waiting on I<cond>."
503 msgid "Some threads are currently waiting on I<cond .>"
504 msgstr "Il existe des threads attendant I<cond>."
505
506 #. type: SH
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "SEE ALSO"
511 msgstr "VOIR AUSSI"
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "B<pthread_condattr_init>(3), B<pthread_mutex_lock>(3), "
518 "B<pthread_mutex_unlock>(3), B<gettimeofday>(2), B<nanosleep>(2)."
519 msgstr ""
520 "B<pthread_condattr_init>(3), B<pthread_mutex_lock>(3), "
521 "B<pthread_mutex_unlock>(3), B<gettimeofday>(2), B<nanosleep>(2)"
522
523 #. type: SH
524 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
525 #: opensuse-tumbleweed
526 #, no-wrap
527 msgid "CAVEATS"
528 msgstr ""
529
530 #. type: Plain text
531 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
532 #: opensuse-tumbleweed
533 msgid ""
534 "The implementation of the provided functions until glibc 2.25 used an "
535 "internal data lock. This lock did not support priority-inheritance and was "
536 "subject to unbounded priority inversion, visible on a real-time system."
537 msgstr ""
538
539 #. type: Plain text
540 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
541 #: opensuse-tumbleweed
542 msgid ""
543 "After the rewrite of the implementation in glibc 2.25 the usage of internal "
544 "lock changed. The internal lock is always acquired by the signaling "
545 "functions B<pthread_cond_signal>() and B<pthread_cond_broadcast>(). The "
546 "waiting function acquires the lock if the waiting process was interrupted. "
547 "The interruption can be caused for instance by a specified timeout, and "
548 "denoted by the error value B<ETIMEDOUTA>, or by a received signal, which is "
549 "denoted by the error value B<EINTR>."
550 msgstr ""
551
552 #. type: SH
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "EXAMPLE"
557 msgstr "EXEMPLE"
558
559 #. type: Plain text
560 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
561 #: opensuse-tumbleweed
562 #, fuzzy
563 #| msgid ""
564 #| "Consider two shared variables I<x> and I<y>, protected by the mutex "
565 #| "I<mut>, and a condition variable I<cond> that is to be signaled whenever "
566 #| "I<x> becomes greater than I<y>."
567 msgid ""
568 "Consider two shared variables I<x> and I<y ,> protected by the mutex I<mut>, "
569 "and a condition variable I<cond> that is to be signaled whenever I<x> "
570 "becomes greater than I<y>."
571 msgstr ""
572 "Considérons deux variables globales partagées I<x> et I<y>, protégées par le "
573 "mutex I<mut>, et une variable condition I<cond> pour signaler que I<x> "
574 "devient plus grand que I<y>."
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 #, no-wrap
580 msgid ""
581 "B<int x,y;\n"
582 "pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n"
583 "pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n"
584 msgstr ""
585 "B<int x,y;\n"
586 "pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n"
587 "pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n"
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid "Waiting until I<x> is greater than I<y> is performed as follows:"
593 msgstr ""
594 "Attendre que I<x> devienne plus grand que I<y> se réalise de la manière "
595 "suivante\\ :"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 #, no-wrap
601 msgid ""
602 "B<pthread_mutex_lock(&mut);\n"
603 "while (x E<lt>= y) {\n"
604 " pthread_cond_wait(&cond, &mut);\n"
605 "}\n"
606 "/* operate on x and y */\n"
607 "pthread_mutex_unlock(&mut);>\n"
608 msgstr ""
609 "B<pthread_mutex_lock(&mut);\n"
610 "while (x E<lt>= y) {\n"
611 " pthread_cond_wait(&cond, &mut);\n"
612 "}\n"
613 "/* operate on x and y */\n"
614 "pthread_mutex_unlock(&mut);>\n"
615
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 msgid ""
620 "Modifications on I<x> and I<y> that may cause I<x> to become greater than "
621 "I<y> should signal the condition if needed:"
622 msgstr ""
623 "Les modifications de I<x> et I<y> qui peuvent rendre I<x> plus grand que "
624 "I<y> doivent signaler la condition si nécessaire\\ :"
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, no-wrap
630 msgid ""
631 "B<pthread_mutex_lock(&mut);\n"
632 "/* modify x and y */\n"
633 "if (x E<gt> y) pthread_cond_broadcast(&cond);\n"
634 "pthread_mutex_unlock(&mut);>\n"
635 msgstr ""
636 "B<pthread_mutex_lock(&mut);\n"
637 "/* modify x and y */\n"
638 "if (x E<gt> y) pthread_cond_broadcast(&cond);\n"
639 "pthread_mutex_unlock(&mut);>\n"
640
641 #. type: Plain text
642 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
643 #: opensuse-tumbleweed
644 #, fuzzy
645 #| msgid ""
646 #| "If it can be proved that at most one waiting thread needs to be waken up "
647 #| "(for instance, if there are only two threads communicating through I<x> "
648 #| "and I<y>), B<pthread_cond_signal> can be used as a slightly more "
649 #| "efficient alternative to B<pthread_cond_broadcast>. In doubt, use "
650 #| "B<pthread_cond_broadcast>."
651 msgid ""
652 "If it can be proved that at most one waiting thread needs to be waken up "
653 "(for instance, if there are only two threads communicating through I<x> and "
654 "I<y>), B<pthread_cond_signal>() can be used as a slightly more efficient "
655 "alternative to B<pthread_cond_broadcast>(). In doubt, use "
656 "B<pthread_cond_broadcast>()."
657 msgstr ""
658 "S'il peut être prouvé qu'au plus un thread en attente nécessite d'être "
659 "réveillé (par exemple, s'il n'y a que deux threads communiquant via I<x> et "
660 "I<y>), B<pthread_cond_signal>() peut être utilisé en tant qu'alternative "
661 "efficace à B<pthread_cond_broadcast>(). En cas de doute, utilisez "
662 "B<pthread_cond_broadcast>()."
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 msgid ""
668 "To wait for I<x> to become greater than I<y> with a timeout of 5 seconds, do:"
669 msgstr ""
670 "Pour attendre que I<x> devienne plus grand que I<y> avec un délai de 5 "
671 "secondes, faîtes\\ :"
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid ""
678 "B<struct timeval now;\n"
679 "struct timespec timeout;\n"
680 "int retcode;\n"
681 "\\&\n"
682 "pthread_mutex_lock(&mut);\n"
683 "gettimeofday(&now);\n"
684 "timeout.tv_sec = now.tv_sec + 5;\n"
685 "timeout.tv_nsec = now.tv_usec * 1000;\n"
686 "retcode = 0;\n"
687 "while (x E<lt>= y && retcode != ETIMEDOUT) {\n"
688 " retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n"
689 "}\n"
690 "if (retcode == ETIMEDOUT) {\n"
691 " /* timeout occurred */\n"
692 "} else {\n"
693 " /* operate on x and y */\n"
694 "}\n"
695 "pthread_mutex_unlock(&mut);>\n"
696 msgstr ""
697 "B<struct timeval now;\n"
698 "struct timespec timeout;\n"
699 "int retcode;\n"
700 "\\&\n"
701 "pthread_mutex_lock(&mut);\n"
702 "gettimeofday(&now);\n"
703 "timeout.tv_sec = now.tv_sec + 5;\n"
704 "timeout.tv_nsec = now.tv_usec * 1000;\n"
705 "retcode = 0;\n"
706 "while (x E<lt>= y && retcode != ETIMEDOUT) {\n"
707 " retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n"
708 "}\n"
709 "if (retcode == ETIMEDOUT) {\n"
710 " /* timeout occurred */\n"
711 "} else {\n"
712 " /* operate on x and y */\n"
713 "}\n"
714 "pthread_mutex_unlock(&mut);>\n"
715
716 #. type: TH
717 #: debian-trixie
718 #, no-wrap
719 msgid "2024-06-16"
720 msgstr "16 juin 2024"
721
722 #. type: TH
723 #: debian-trixie
724 #, no-wrap
725 msgid "Linux man-pages 6.9.1"
726 msgstr "Pages du manuel de Linux 6.9.1"
727
728 #. type: Plain text
729 #: debian-trixie fedora-44 fedora-rawhide
730 msgid ""
731 "A condition (short for ``condition variable'') is a synchronization device "
732 "that allows threads to suspend execution and relinquish the processors until "
733 "some predicate on shared data is satisfied. The basic operations on "
734 "conditions are: signal the condition (when the predicate becomes true), and "
735 "wait for the condition, suspending the thread execution until another thread "
736 "signals the condition."
737 msgstr ""
738 "Une condition (abréviation pour «\\ variable condition\\ ») est un mécanisme "
739 "de synchronisation permettant à un thread de suspendre son exécution jusqu'à "
740 "ce qu'une certaine condition (un prédicat) sur des données partagées soit "
741 "vérifiée. Les opérations fondamentales sur les conditions sont\\ : signaler "
742 "la condition (quand le prédicat devient vrai) et attendre la condition en "
743 "suspendant l'exécution du thread jusqu'à ce qu'un autre thread signale la "
744 "condition."
745
746 #. type: Plain text
747 #: debian-trixie fedora-44 fedora-rawhide
748 msgid ""
749 "B<pthread_cond_init> initializes the condition variable I<cond>, using the "
750 "condition attributes specified in I<cond_attr>, or default attributes if "
751 "I<cond_attr> is B<NULL>. The LinuxThreads implementation supports no "
752 "attributes for conditions, hence the I<cond_attr> parameter is actually "
753 "ignored."
754 msgstr ""
755 "B<pthread_cond_init>() initialise la variable condition I<cond>, en "
756 "utilisant les attributs de condition spécifiés par I<cond_attr>, ou les "
757 "attributs par défaut si I<cond_attr> vaut NULL. L'implémentation "
758 "LinuxThreads ne supporte aucun attribut de condition, aussi le paramètre "
759 "I<cond_attr> est pour l'instant ignoré."
760
761 #. type: Plain text
762 #: debian-trixie fedora-44 fedora-rawhide
763 msgid ""
764 "Variables of type B<pthread_cond_t> can also be initialized statically, "
765 "using the constant B<PTHREAD_COND_INITIALIZER>."
766 msgstr ""
767 "Les variables de type B<pthread_cond_t> peuvent également être statiquement "
768 "initialisées, en utilisant la constante B<PTHREAD_COND_INITIALIZER>."
769
770 #. type: Plain text
771 #: debian-trixie fedora-44 fedora-rawhide
772 msgid ""
773 "B<pthread_cond_signal> restarts one of the threads that are waiting on the "
774 "condition variable I<cond>. If no threads are waiting on I<cond>, nothing "
775 "happens. If several threads are waiting on I<cond>, exactly one is "
776 "restarted, but it is not specified which."
777 msgstr ""
778 "B<pthread_cond_signal>() relance l'un des threads attendant la variable "
779 "condition I<cond>. S'il n'existe aucun thread répondant à ce critère, rien "
780 "ne se produit. Si plusieurs threads attendent sur I<cond>, seul l'un d'entre "
781 "eux sera relancé, mais il est impossible de savoir lequel."
782
783 #. type: Plain text
784 #: debian-trixie fedora-44 fedora-rawhide
785 msgid ""
786 "B<pthread_cond_broadcast> restarts all the threads that are waiting on the "
787 "condition variable I<cond>. Nothing happens if no threads are waiting on "
788 "I<cond>."
789 msgstr ""
790 "B<pthread_cond_broadcast>() relance tous les threads attendant sur la "
791 "variable condition I<cond>. Rien ne se passe s'il n'y a aucun thread "
792 "attendant sur I<cond>."
793
794 #. type: Plain text
795 #: debian-trixie
796 msgid ""
797 "B<pthread_cond_wait> atomically unlocks the I<mutex> (as per "
798 "B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be "
799 "signaled. The thread execution is suspended and does not consume any CPU "
800 "time until the condition variable is signaled. The I<mutex> must be locked "
801 "by the calling thread on entrance to B<pthread_cond_wait>. Before returning "
802 "to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per "
803 "B<pthread_lock_mutex>)."
804 msgstr ""
805 "B<pthread_cond_wait>() déverrouille atomiquement le I<mutex> (comme "
806 "B<pthread_unlock_mutex>()) et attend que la variable condition I<cond> soit "
807 "signalée. L'exécution du thread est suspendue et ne consomme pas de temps "
808 "CPU jusqu'à ce que la variable condition soit signalée. Le I<mutex> doit "
809 "être verrouillé par le thread appelant à l'entrée de B<pthread_cond_wait>(). "
810 "Avant de rendre la main au thread appelant, B<pthread_cond_wait>() "
811 "reverrouille I<mutex> (comme B<pthread_lock_mutex>())."
812
813 #. type: Plain text
814 #: debian-trixie fedora-44 fedora-rawhide
815 msgid ""
816 "Unlocking the mutex and suspending on the condition variable is done "
817 "atomically. Thus, if all threads always acquire the mutex before signaling "
818 "the condition, this guarantees that the condition cannot be signaled (and "
819 "thus ignored) between the time a thread locks the mutex and the time it "
820 "waits on the condition variable."
821 msgstr ""
822 "Le déverrouillage du mutex et la suspension de l'exécution sur la variable "
823 "condition sont liés atomiquement. Donc, si tous les threads verrouillent le "
824 "mutex avant de signaler la condition, il est garanti que la condition ne "
825 "peut être signalée (et donc ignorée) entre le moment où un thread verrouille "
826 "le mutex et le moment où il attend sur la variable condition."
827
828 #. type: Plain text
829 #: debian-trixie fedora-44 fedora-rawhide
830 msgid ""
831 "B<pthread_cond_timedwait> atomically unlocks I<mutex> and waits on I<cond>, "
832 "as B<pthread_cond_wait> does, but it also bounds the duration of the wait. "
833 "If I<cond> has not been signaled within the amount of time specified by "
834 "I<abstime>, the mutex I<mutex> is re-acquired and B<pthread_cond_timedwait> "
835 "returns the error B<ETIMEDOUT>. The I<abstime> parameter specifies an "
836 "absolute time, with the same origin as B<time>(2) and B<gettimeofday>(2): an "
837 "I<abstime> of 0 corresponds to 00:00:00 GMT, January 1, 1970."
838 msgstr ""
839 "B<pthread_cond_timedwait>() déverrouille le I<mutex> et attend sur I<cond>, "
840 "en liant atomiquement ces deux étapes, comme le fait B<pthread_cond_wait>(), "
841 "cependant l'attente est bornée temporellement. Si I<cond> n'a pas été "
842 "signalée après la période spécifiée par I<abstime>, le mutex I<mutex> est "
843 "reverrouillé et B<pthread_cond_timedwait>() rend la main avec l'erreur "
844 "B<ETIMEDOUT>. Le paramètre I<abstime> spécifie un temps absolu, avec la même "
845 "origine que B<time>(2) et B<gettimeofday>(2)\\ : un I<abstime> de 0 "
846 "correspond à 00:00:00 GMT, le 1er Janvier 1970."
847
848 #. type: Plain text
849 #: debian-trixie fedora-44 fedora-rawhide
850 msgid ""
851 "B<pthread_cond_destroy> destroys a condition variable, freeing the resources "
852 "it might hold. No threads must be waiting on the condition variable on "
853 "entrance to B<pthread_cond_destroy>. In the LinuxThreads implementation, no "
854 "resources are associated with condition variables, thus "
855 "B<pthread_cond_destroy> actually does nothing except checking that the "
856 "condition has no waiting threads."
857 msgstr ""
858 "B<pthread_cond_destroy>() détruit une variable condition, libérant les "
859 "ressources qu'elle possède. Aucun thread ne doit attendre sur la condition à "
860 "l'entrée de B<pthread_cond_destroy>(). Dans l'implémentation LinuxThreads, "
861 "aucune ressource ne peut être associée à une variable condition, aussi "
862 "B<pthread_cond_destroy>() ne fait en fait rien d'autre que vérifier qu'aucun "
863 "thread n'attend la condition."
864
865 #. type: Plain text
866 #: debian-trixie fedora-44 fedora-rawhide
867 msgid ""
868 "B<pthread_cond_wait> and B<pthread_cond_timedwait> are cancelation points. "
869 "If a thread is cancelled while suspended in one of these functions, the "
870 "thread immediately resumes execution, then locks again the I<mutex> argument "
871 "to B<pthread_cond_wait> and B<pthread_cond_timedwait>, and finally executes "
872 "the cancelation. Consequently, cleanup handlers are assured that I<mutex> "
873 "is locked when they are called."
874 msgstr ""
875 "B<pthread_cond_wait>() et B<pthread_cond_timedwait>() sont des points "
876 "d'annulation. Si un thread est annulé alors qu'il est suspendu dans l'une de "
877 "ces fonctions, son exécution reprend immédiatement, reverrouillant le "
878 "paramètre I<mutex> à B<pthread_cond_wait>() et B<pthread_cond_timedwait>(), "
879 "et exécute finalement l'annulation. Aussi, les gestionnaires d'annulation "
880 "sont assurés que I<mutex> est verrouillé lorsqu'ils sont exécutés."
881
882 #. type: Plain text
883 #: debian-trixie fedora-44 fedora-rawhide
884 msgid ""
885 "The condition functions are not async-signal safe, and should not be called "
886 "from a signal handler. In particular, calling B<pthread_cond_signal> or "
887 "B<pthread_cond_broadcast> from a signal handler may deadlock the calling "
888 "thread."
889 msgstr ""
890 "Ces fonctions ne sont pas fiables par rapport aux signaux asynchrones et ne "
891 "doivent donc pas être utilisées dans des gestionnaires de signaux [NdT\\ : "
892 "sous peine de perdre leur propriété d'atomicité]. En particulier, appeler "
893 "B<pthread_cond_signal>() ou B<pthread_cond_broadcast>() dans un gestionnaire "
894 "de signal peut placer le thread appelant dans une situation de blocage "
895 "définitif."
896
897 #. type: Plain text
898 #: debian-trixie fedora-44 fedora-rawhide
899 msgid ""
900 "B<pthread_cond_init>, B<pthread_cond_signal>, B<pthread_cond_broadcast>, and "
901 "B<pthread_cond_wait> never return an error code."
902 msgstr ""
903 "B<pthread_cond_init>(), B<pthread_cond_signal>(), "
904 "B<pthread_cond_broadcast>() et B<pthread_cond_wait>() ne renvoient jamais de "
905 "code d'erreur."
906
907 #. type: Plain text
908 #: debian-trixie fedora-44 fedora-rawhide
909 msgid ""
910 "The B<pthread_cond_timedwait> function returns the following error codes on "
911 "error:"
912 msgstr ""
913 "La fonction B<pthread_cond_timedwait>() renvoie l'un des codes d'erreur "
914 "suivants en cas de problème\\ :"
915
916 #. type: Plain text
917 #: debian-trixie fedora-44 fedora-rawhide
918 msgid ""
919 "The condition variable was not signaled until the timeout specified by "
920 "I<abstime>."
921 msgstr ""
922 "La variable condition n'a pas reçu de signal avant le délai spécifié par "
923 "I<abstime>."
924
925 #. type: TP
926 #: debian-trixie
927 #, no-wrap
928 msgid "B<EINTR>"
929 msgstr "B<EINTR>"
930
931 #. type: Plain text
932 #: debian-trixie
933 msgid "B<pthread_cond_timedwait> was interrupted by a signal."
934 msgstr "B<pthread_cond_timedwait>() a été interrompu par un signal."
935
936 #. type: Plain text
937 #: debian-trixie fedora-44 fedora-rawhide
938 msgid ""
939 "The B<pthread_cond_destroy> function returns the following error code on "
940 "error:"
941 msgstr ""
942 "La fonction B<pthread_cond_destroy>() renvoie le code d'erreur suivant en "
943 "cas de problème\\ :"
944
945 #. type: Plain text
946 #: debian-trixie fedora-44 fedora-rawhide
947 msgid "Some threads are currently waiting on I<cond>."
948 msgstr "Il existe des threads attendant I<cond>."
949
950 #. type: Plain text
951 #: debian-trixie fedora-44 fedora-rawhide
952 msgid ""
953 "Consider two shared variables I<x> and I<y>, protected by the mutex I<mut>, "
954 "and a condition variable I<cond> that is to be signaled whenever I<x> "
955 "becomes greater than I<y>."
956 msgstr ""
957 "Considérons deux variables globales partagées I<x> et I<y>, protégées par le "
958 "mutex I<mut>, et une variable condition I<cond> pour signaler que I<x> "
959 "devient plus grand que I<y>."
960
961 #. type: Plain text
962 #: debian-trixie fedora-44 fedora-rawhide
963 msgid ""
964 "If it can be proved that at most one waiting thread needs to be waken up "
965 "(for instance, if there are only two threads communicating through I<x> and "
966 "I<y>), B<pthread_cond_signal> can be used as a slightly more efficient "
967 "alternative to B<pthread_cond_broadcast>. In doubt, use "
968 "B<pthread_cond_broadcast>."
969 msgstr ""
970 "S'il peut être prouvé qu'au plus un thread en attente nécessite d'être "
971 "réveillé (par exemple, s'il n'y a que deux threads communiquant via I<x> et "
972 "I<y>), B<pthread_cond_signal>() peut être utilisé en tant qu'alternative "
973 "efficace à B<pthread_cond_broadcast>(). En cas de doute, utilisez "
974 "B<pthread_cond_broadcast>()."
975
976 #. type: TH
977 #: fedora-44 fedora-rawhide
978 #, no-wrap
979 msgid "2025-01-04"
980 msgstr "4 janvier 2025"
981
982 #. type: TH
983 #: fedora-44 fedora-rawhide
984 #, no-wrap
985 msgid "Linux man-pages 6.13"
986 msgstr "Pages du manuel de Linux 6.13"
987
988 #. type: Plain text
989 #: fedora-44 fedora-rawhide
990 #, fuzzy
991 #| msgid ""
992 #| "B<pthread_cond_wait> atomically unlocks the I<mutex> (as per "
993 #| "B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to "
994 #| "be signaled. The thread execution is suspended and does not consume any "
995 #| "CPU time until the condition variable is signaled. The I<mutex> must be "
996 #| "locked by the calling thread on entrance to B<pthread_cond_wait>. Before "
997 #| "returning to the calling thread, B<pthread_cond_wait> re-acquires "
998 #| "I<mutex> (as per B<pthread_lock_mutex>)."
999 msgid ""
1000 "B<pthread_cond_wait> atomically unlocks the I<mutex> (as per "
1001 "B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be "
1002 "signaled. The thread execution is suspended and does not consume any CPU "
1003 "time until the condition variable is signaled. The I<mutex> must be locked "
1004 "by the calling thread on entrance to B<pthread_cond_wait>. Before returning "
1005 "to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per "
1006 "B<pthread_mutex_lock>)."
1007 msgstr ""
1008 "B<pthread_cond_wait>() déverrouille atomiquement le I<mutex> (comme "
1009 "B<pthread_unlock_mutex>()) et attend que la variable condition I<cond> soit "
1010 "signalée. L'exécution du thread est suspendue et ne consomme pas de temps "
1011 "CPU jusqu'à ce que la variable condition soit signalée. Le I<mutex> doit "
1012 "être verrouillé par le thread appelant à l'entrée de B<pthread_cond_wait>(). "
1013 "Avant de rendre la main au thread appelant, B<pthread_cond_wait>() "
1014 "reverrouille I<mutex> (comme B<pthread_lock_mutex>())."
1015
1016 #. type: TH
1017 #: mageia-cauldron
1018 #, no-wrap
1019 msgid "2025-10-16"
1020 msgstr "16 octobre 2025"
1021
1022 #. type: TH
1023 #: mageia-cauldron
1024 #, no-wrap
1025 msgid "Linux man-pages 6.17"
1026 msgstr "Pages du manuel de Linux 6.17"
1027
1028 #. type: Plain text
1029 #: mageia-cauldron
1030 #, fuzzy
1031 #| msgid ""
1032 #| "B<pthread_cond_wait> atomically unlocks the I<mutex> (as per "
1033 #| "B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to "
1034 #| "be signaled. The thread execution is suspended and does not consume any "
1035 #| "CPU time until the condition variable is signaled. The I<mutex> must be "
1036 #| "locked by the calling thread on entrance to B<pthread_cond_wait>. Before "
1037 #| "returning to the calling thread, B<pthread_cond_wait> re-acquires "
1038 #| "I<mutex> (as per B<pthread_lock_mutex>)."
1039 msgid ""
1040 "B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per "
1041 "B<pthread_unlock_mutex>()) and waits for the condition variable I<cond> to "
1042 "be signaled. The thread execution is suspended and does not consume any CPU "
1043 "time until the condition variable is signaled. The I<mutex> must be locked "
1044 "by the calling thread on entrance to B<pthread_cond_wait>(). Before "
1045 "returning to the calling thread, B<pthread_cond_wait>() re-acquires "
1046 "I<mutex> (as per B<pthread_mutex_lock>())."
1047 msgstr ""
1048 "B<pthread_cond_wait>() déverrouille atomiquement le I<mutex> (comme "
1049 "B<pthread_unlock_mutex>()) et attend que la variable condition I<cond> soit "
1050 "signalée. L'exécution du thread est suspendue et ne consomme pas de temps "
1051 "CPU jusqu'à ce que la variable condition soit signalée. Le I<mutex> doit "
1052 "être verrouillé par le thread appelant à l'entrée de B<pthread_cond_wait>(). "
1053 "Avant de rendre la main au thread appelant, B<pthread_cond_wait>() "
1054 "reverrouille I<mutex> (comme B<pthread_lock_mutex>())."
1055
1056 #. type: TH
1057 #: opensuse-leap-16-1 opensuse-tumbleweed
1058 #, no-wrap
1059 msgid "Linux man-pages (unreleased)"
1060 msgstr "Pages du manuel de Linux (non publiées)"