| 1 |
# Romanian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Remus-Gabriel Chelu <[email protected]>, 2024, 2025, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.21.0\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-07 01:19+0200\n" |
| 10 |
"Last-Translator: Remus-Gabriel Chelu <[email protected]>\n" |
| 11 |
"Language-Team: Romanian <[email protected]>\n" |
| 12 |
"Language: ro\n" |
| 13 |
"MIME-Version: 1.0\n" |
| 14 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 15 |
"Content-Transfer-Encoding: 8bit\n" |
| 16 |
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " |
| 17 |
"20)) ? 1 : 2;\n" |
| 18 |
"X-Generator: Poedit 3.8\n" |
| 19 |
|
| 20 |
#. type: TH |
| 21 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 22 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 23 |
#, no-wrap |
| 24 |
msgid "pthread_cond_init" |
| 25 |
msgstr "pthread_cond_init" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-03-22" |
| 31 |
msgstr "22 martie 2026" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "Pagini de manual de Linux 6.18" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "NUME" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "" |
| 50 |
"pthread_cond_init, pthread_cond_signal, pthread_cond_broadcast, " |
| 51 |
"pthread_cond_wait, pthread_cond_timedwait, pthread_cond_destroy - operations " |
| 52 |
"on conditions" |
| 53 |
msgstr "" |
| 54 |
"pthread_cond_init, pthread_cond_signal, pthread_cond_broadcast, " |
| 55 |
"pthread_cond_wait, pthread_cond_timedwait, pthread_cond_destroy - operații " |
| 56 |
"asupra condițiilor" |
| 57 |
|
| 58 |
#. type: SH |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, no-wrap |
| 62 |
msgid "SYNOPSIS" |
| 63 |
msgstr "SINOPSIS" |
| 64 |
|
| 65 |
#. type: Plain text |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "B<#include E<lt>pthread.hE<gt>>\n" |
| 70 |
msgstr "B<#include E<lt>pthread.hE<gt>>\n" |
| 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<pthread_cond_t >I<cond>B< = PTHREAD_COND_INITIALIZER;>\n" |
| 77 |
msgstr "B<pthread_cond_t >I<cond>B< = PTHREAD_COND_INITIALIZER;>\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 "" |
| 84 |
"B<int pthread_cond_init(pthread_cond_t *>I<cond>B<,>\n" |
| 85 |
"B< pthread_condattr_t *>I<cond_attr>B<);>\n" |
| 86 |
"B<int pthread_cond_signal(pthread_cond_t *>I<cond>B<);>\n" |
| 87 |
"B<int pthread_cond_broadcast(pthread_cond_t *>I<cond>B<);>\n" |
| 88 |
"B<int pthread_cond_wait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<);>\n" |
| 89 |
"B<int pthread_cond_timedwait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<,>\n" |
| 90 |
"B< const struct timespec *>I<abstime>B<);>\n" |
| 91 |
"B<int pthread_cond_destroy(pthread_cond_t *>I<cond>B<);>\n" |
| 92 |
msgstr "" |
| 93 |
"B<int pthread_cond_init(pthread_cond_t *>I<cond>B<,>\n" |
| 94 |
"B< pthread_condattr_t *>I<cond_attr>B<);>\n" |
| 95 |
"B<int pthread_cond_signal(pthread_cond_t *>I<cond>B<);>\n" |
| 96 |
"B<int pthread_cond_broadcast(pthread_cond_t *>I<cond>B<);>\n" |
| 97 |
"B<int pthread_cond_wait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<);>\n" |
| 98 |
"B<int pthread_cond_timedwait(pthread_cond_t *>I<cond>B<, pthread_mutex_t *>I<mutex>B<,>\n" |
| 99 |
"B< const struct timespec *>I<abstime>B<);>\n" |
| 100 |
"B<int pthread_cond_destroy(pthread_cond_t *>I<cond>B<);>\n" |
| 101 |
|
| 102 |
#. type: SH |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "DESCRIPTION" |
| 107 |
msgstr "DESCRIERE" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 111 |
#: opensuse-tumbleweed |
| 112 |
msgid "" |
| 113 |
"A condition (short for \"condition variable\") is a synchronization device " |
| 114 |
"that allows threads to suspend execution and relinquish the processors until " |
| 115 |
"some predicate on shared data is satisfied. The basic operations on " |
| 116 |
"conditions are: signal the condition (when the predicate becomes true), and " |
| 117 |
"wait for the condition, suspending the thread execution until another thread " |
| 118 |
"signals the condition." |
| 119 |
msgstr "" |
| 120 |
"O condiție (prescurtare de la „variabilă de condiție”) este un mecanism de " |
| 121 |
"sincronizare care permite firelor de execuție să suspende execuția și să " |
| 122 |
"cedeze procesoarele până când este satisfăcută o anumită condiție (un " |
| 123 |
"predicat) privind datele partajate. Operațiile de bază ale condițiilor sunt: " |
| 124 |
"semnalizarea condiției (când predicatul devine adevărat) și așteptarea " |
| 125 |
"condiției, suspendând execuția firului până când un alt fir semnalizează " |
| 126 |
"condiția." |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
msgid "" |
| 132 |
"A condition variable must always be associated with a mutex, to avoid the " |
| 133 |
"race condition where a thread prepares to wait on a condition variable and " |
| 134 |
"another thread signals the condition just before the first thread actually " |
| 135 |
"waits on it." |
| 136 |
msgstr "" |
| 137 |
"O variabilă de condiție trebuie să fie întotdeauna asociată cu un mutex, " |
| 138 |
"pentru a evita condiția de „competiție pentru obținerea de date” în care un " |
| 139 |
"fir se pregătește să aștepte pe o variabilă de condiție și un alt fir " |
| 140 |
"semnalizează condiția chiar înainte ca primul fir să aștepte efectiv pe ea." |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 144 |
#: opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"B<pthread_cond_init>() initializes the condition variable I<cond>, using " |
| 147 |
"the condition attributes specified in I<cond_attr>, or default attributes if " |
| 148 |
"I<cond_attr> is NULL. The LinuxThreads implementation supports no " |
| 149 |
"attributes for conditions, hence the I<cond_attr> parameter is actually " |
| 150 |
"ignored." |
| 151 |
msgstr "" |
| 152 |
"B<pthread_cond_init>() inițializează variabila de condiție I<cond>, " |
| 153 |
"utilizând atributele de condiție specificate în I<cond_attr> sau atributele " |
| 154 |
"implicite dacă I<cond_attr> este NULL. Implementarea „LinuxThreads” nu " |
| 155 |
"acceptă atribute pentru condiții, prin urmare parametrul I<cond_attr> este " |
| 156 |
"de fapt ignorat." |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 160 |
#: opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Variables of type I<pthread_cond_t> can also be initialized statically, " |
| 163 |
"using the constant B<PTHREAD_COND_INITIALIZER>." |
| 164 |
msgstr "" |
| 165 |
"Variabilele de tip I<pthread_cond_t> pot fi, de asemenea, inițializate " |
| 166 |
"static, utilizând constanta B<PTHREAD_COND_INITIALIZER>." |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 170 |
#: opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"B<pthread_cond_signal>() restarts one of the threads that are waiting on " |
| 173 |
"the condition variable I<cond>. If no threads are waiting on I<cond>, " |
| 174 |
"nothing happens. If several threads are waiting on I<cond>, exactly one is " |
| 175 |
"restarted, but it is not specified which." |
| 176 |
msgstr "" |
| 177 |
"B<pthread_cond_signal>() repornește unul dintre firele care așteaptă " |
| 178 |
"variabila de condiție I<cond>. În cazul în care niciun fir de execuție nu " |
| 179 |
"așteaptă pe I<cond>, nu se întâmplă nimic. În cazul în care mai multe fire " |
| 180 |
"așteaptă pe I<cond>, se repornește exact unul dintre ele, dar nu se " |
| 181 |
"specifică care." |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 185 |
#: opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"B<pthread_cond_broadcast>() restarts all the threads that are waiting on " |
| 188 |
"the condition variable I<cond>. Nothing happens if no threads are waiting " |
| 189 |
"on I<cond>." |
| 190 |
msgstr "" |
| 191 |
"B<pthread_cond_broadcast>() repornește toate firele care așteaptă variabila " |
| 192 |
"de condiție I<cond>. Nu se întâmplă nimic dacă niciun fir de execuție nu " |
| 193 |
"așteaptă pe I<cond>." |
| 194 |
|
| 195 |
#. type: Plain text |
| 196 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per " |
| 199 |
"B<pthread_mutex_unlock>()) and waits for the condition variable I<cond> to " |
| 200 |
"be signaled. The thread execution is suspended and does not consume any CPU " |
| 201 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 202 |
"by the calling thread on entrance to B<pthread_cond_wait>(). Before " |
| 203 |
"returning to the calling thread, B<pthread_cond_wait>() re-acquires " |
| 204 |
"I<mutex> (as per B<pthread_mutex_lock>())." |
| 205 |
msgstr "" |
| 206 |
"B<pthread_cond_wait>() deblochează atomic I<mutex> (conform " |
| 207 |
"B<pthread_mutex_unlock>()) și așteaptă ca variabila de condiție I<cond> să " |
| 208 |
"fie semnalată. Execuția firului este suspendată și nu consumă timp CPU până " |
| 209 |
"când variabila de condiție nu este semnalată. I<mutex> trebuie să fie " |
| 210 |
"blocată de firul apelant la intrarea în B<pthread_cond_wait>(). Înainte de a " |
| 211 |
"reveni la firul apelant, B<pthread_cond_wait>() recuperează I<mutex> " |
| 212 |
"(conform B<pthread_mutex_lock>())." |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 216 |
#: opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"Unlocking the mutex and suspending on the condition variable is done " |
| 219 |
"atomically. Thus, if all threads always acquire the mutex before signaling " |
| 220 |
"the condition, this guarantees that the condition cannot be signaled (and " |
| 221 |
"thus ignored) between the time a thread locks the mutex and the time it " |
| 222 |
"waits on the condition variable. See CAVEATS below." |
| 223 |
msgstr "" |
| 224 |
"Deblocarea mutex-ului și suspendarea pe variabila de condiție se face " |
| 225 |
"atomic. Astfel, dacă toate firele achiziționează întotdeauna mutex-ul " |
| 226 |
"înainte de a semnaliza condiția, acest lucru garantează că condiția nu poate " |
| 227 |
"fi semnalată (și, prin urmare, ignorată) între momentul în care un fir " |
| 228 |
"blochează mutex-ul și momentul în care așteaptă pe variabila de condiție. A " |
| 229 |
"se vedea secțiunea «AVERTISMENTE» de mai jos." |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 233 |
#: opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"B<pthread_cond_timedwait>() atomically unlocks I<mutex> and waits on " |
| 236 |
"I<cond>, as B<pthread_cond_wait>() does, but it also bounds the duration of " |
| 237 |
"the wait. If I<cond> has not been signaled within the amount of time " |
| 238 |
"specified by I<abstime>, the mutex I<mutex> is re-acquired and " |
| 239 |
"B<pthread_cond_timedwait>() returns the error B<ETIMEDOUT>. The I<abstime> " |
| 240 |
"parameter specifies an absolute time, with the same origin as B<time>(2) " |
| 241 |
"and B<gettimeofday>(2): an I<abstime> of 0 corresponds to 00:00:00 GMT, " |
| 242 |
"January 1, 1970." |
| 243 |
msgstr "" |
| 244 |
"B<pthread_cond_timedwait>() deblochează atomic I<mutex> și așteaptă pe " |
| 245 |
"I<cond>, la fel ca B<pthread_cond_wait>, dar limitează și durata așteptării. " |
| 246 |
"Dacă I<cond> nu a fost semnalată în intervalul de timp specificat de " |
| 247 |
"I<abstime>, mutex-ul I<mutex> este reacceptat din nou, iar " |
| 248 |
"B<pthread_cond_timedwait>() returnează eroarea B<ETIMEDOUT>. Parametrul " |
| 249 |
"I<abstime> specifică un timp absolut, cu aceeași origine ca și B<time>(2) și " |
| 250 |
"B<gettimeofday>(2): un I<abstime> de 0 corespunde la 00:00:00 GMT, 1 " |
| 251 |
"ianuarie 1970." |
| 252 |
|
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 255 |
#: opensuse-tumbleweed |
| 256 |
msgid "" |
| 257 |
"B<pthread_cond_destroy>() destroys a condition variable, freeing the " |
| 258 |
"resources it might hold. No threads must be waiting on the condition " |
| 259 |
"variable on entrance to B<pthread_cond_destroy>(). In the LinuxThreads " |
| 260 |
"implementation, no resources are associated with condition variables, thus " |
| 261 |
"B<pthread_cond_destroy>() actually does nothing except checking that the " |
| 262 |
"condition has no waiting threads." |
| 263 |
msgstr "" |
| 264 |
"B<pthread_cond_destroy>() distruge o variabilă de condiție, eliberând " |
| 265 |
"resursele pe care le-ar putea conține. La intrarea în " |
| 266 |
"B<pthread_cond_destroy>() nu trebuie să existe fire de execuție care să " |
| 267 |
"aștepte variabila de condiție. În implementarea „LinuxThreads”, nu există " |
| 268 |
"resurse asociate variabilelor de condiție, astfel încât " |
| 269 |
"B<pthread_cond_destroy>() nu face de fapt nimic, cu excepția verificării " |
| 270 |
"faptului că nu există fire de execuție în așteptare." |
| 271 |
|
| 272 |
#. type: SH |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid "CANCELLATION" |
| 277 |
msgstr "ANULARE" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 281 |
#: opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"B<pthread_cond_wait>() and B<pthread_cond_timedwait>() are cancelation " |
| 284 |
"points. If a thread is cancelled while suspended in one of these functions, " |
| 285 |
"the thread immediately resumes execution, then locks again the I<mutex> " |
| 286 |
"argument to B<pthread_cond_wait>() and B<pthread_cond_timedwait>(), and " |
| 287 |
"finally executes the cancelation. Consequently, cleanup handlers are " |
| 288 |
"assured that I<mutex> is locked when they are called." |
| 289 |
msgstr "" |
| 290 |
"B<pthread_cond_wait>() și B<pthread_cond_timedwait>() sunt puncte de " |
| 291 |
"anulare. Dacă un fir este anulat în timp ce este suspendat într-una din " |
| 292 |
"aceste funcții, firul își reia imediat execuția, apoi blochează din nou " |
| 293 |
"argumentul I<mutex> la B<pthread_cond_wait>() și B<pthread_cond_timedwait>() " |
| 294 |
"și, în final, execută anularea. În consecință, gestionarii de curățare sunt " |
| 295 |
"asigurați că I<mutex> este blocat atunci când sunt apelați." |
| 296 |
|
| 297 |
#. type: SH |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
#, no-wrap |
| 301 |
msgid "ASYNC-SIGNAL SAFETY" |
| 302 |
msgstr "SIGURANȚA SEMNALELOR ASINCRONE" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 306 |
#: opensuse-tumbleweed |
| 307 |
msgid "" |
| 308 |
"The condition functions are not async-signal safe, and should not be called " |
| 309 |
"from a signal handler. In particular, calling B<pthread_cond_signal>() or " |
| 310 |
"B<pthread_cond_broadcast>() from a signal handler may deadlock the calling " |
| 311 |
"thread." |
| 312 |
msgstr "" |
| 313 |
"Funcțiile de condiție nu sunt sigure pentru semnale asincrone și nu ar " |
| 314 |
"trebui să fie apelate de la un gestionar de semnal. În special, apelarea " |
| 315 |
"B<pthread_cond_signal>() sau B<pthread_cond_broadcast>() de la un gestionar " |
| 316 |
"de semnal poate bloca firul apelant." |
| 317 |
|
| 318 |
#. type: SH |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "RETURN VALUE" |
| 323 |
msgstr "VALOAREA RETURNATĂ" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "" |
| 329 |
"All condition variable functions return 0 on success and a non-zero error " |
| 330 |
"code on error." |
| 331 |
msgstr "" |
| 332 |
"Toate funcțiile de variabilă de condiție returnează 0 în caz de succes și un " |
| 333 |
"cod de eroare diferit de zero în caz de eroare." |
| 334 |
|
| 335 |
#. type: SH |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "ERRORS" |
| 340 |
msgstr "ERORI-IEȘIRE" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 344 |
#: opensuse-tumbleweed |
| 345 |
msgid "" |
| 346 |
"B<pthread_cond_init>(), B<pthread_cond_signal>(), " |
| 347 |
"B<pthread_cond_broadcast>(), and B<pthread_cond_wait>() never return an " |
| 348 |
"error code." |
| 349 |
msgstr "" |
| 350 |
"B<pthread_cond_init>(), B<pthread_cond_signal>(), " |
| 351 |
"B<pthread_cond_broadcast>() și B<pthread_cond_wait>() nu returnează " |
| 352 |
"niciodată un cod de eroare." |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 356 |
#: opensuse-tumbleweed |
| 357 |
msgid "" |
| 358 |
"The B<pthread_cond_timedwait>() function returns the following error codes " |
| 359 |
"on error:" |
| 360 |
msgstr "" |
| 361 |
"Funcția B<pthread_cond_timedwait>() returnează următoarele coduri de eroare " |
| 362 |
"în caz de eroare:" |
| 363 |
|
| 364 |
#. type: TP |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "B<ETIMEDOUT>" |
| 369 |
msgstr "B<ETIMEDOUT>" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 373 |
#: opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"The condition variable was not signaled until the timeout specified by " |
| 376 |
"I<abstime .>" |
| 377 |
msgstr "" |
| 378 |
"Variabila de condiție nu a fost semnalată până la expirarea timpului de " |
| 379 |
"așteptare specificat de I<abstime>." |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 383 |
#: opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"The B<pthread_cond_destroy>() function returns the following error code on " |
| 386 |
"error:" |
| 387 |
msgstr "" |
| 388 |
"Funcția B<pthread_cond_destroy> returnează următorul cod de eroare în caz de " |
| 389 |
"eroare:" |
| 390 |
|
| 391 |
#. type: TP |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "B<EBUSY>" |
| 396 |
msgstr "B<EBUSY>" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 400 |
#: opensuse-tumbleweed |
| 401 |
msgid "Some threads are currently waiting on I<cond .>" |
| 402 |
msgstr "Unele fire sunt în prezent în așteptare pe I<cond>." |
| 403 |
|
| 404 |
#. type: SH |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "SEE ALSO" |
| 409 |
msgstr "CONSULTAȚI ȘI" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "" |
| 415 |
"B<pthread_condattr_init>(3), B<pthread_mutex_lock>(3), " |
| 416 |
"B<pthread_mutex_unlock>(3), B<gettimeofday>(2), B<nanosleep>(2)." |
| 417 |
msgstr "" |
| 418 |
"B<pthread_condattr_init>(3), B<pthread_mutex_lock>(3), " |
| 419 |
"B<pthread_mutex_unlock>(3), B<gettimeofday>(2), B<nanosleep>(2)." |
| 420 |
|
| 421 |
#. type: SH |
| 422 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 423 |
#: opensuse-tumbleweed |
| 424 |
#, no-wrap |
| 425 |
msgid "CAVEATS" |
| 426 |
msgstr "AVERTISMENTE" |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 430 |
#: opensuse-tumbleweed |
| 431 |
msgid "" |
| 432 |
"The implementation of the provided functions until glibc 2.25 used an " |
| 433 |
"internal data lock. This lock did not support priority-inheritance and was " |
| 434 |
"subject to unbounded priority inversion, visible on a real-time system." |
| 435 |
msgstr "" |
| 436 |
"Implementarea funcțiilor furnizate până la glibc 2.25 utiliza un blocaj " |
| 437 |
"intern de date. Acest blocaj nu accepta moștenirea priorității și era supus " |
| 438 |
"unei inversări nelimitate a priorității, vizibilă într-un sistem în timp " |
| 439 |
"real." |
| 440 |
|
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 443 |
#: opensuse-tumbleweed |
| 444 |
msgid "" |
| 445 |
"After the rewrite of the implementation in glibc 2.25 the usage of internal " |
| 446 |
"lock changed. The internal lock is always acquired by the signaling " |
| 447 |
"functions B<pthread_cond_signal>() and B<pthread_cond_broadcast>(). The " |
| 448 |
"waiting function acquires the lock if the waiting process was interrupted. " |
| 449 |
"The interruption can be caused for instance by a specified timeout, and " |
| 450 |
"denoted by the error value B<ETIMEDOUTA>, or by a received signal, which is " |
| 451 |
"denoted by the error value B<EINTR>." |
| 452 |
msgstr "" |
| 453 |
"După rescrierea implementării în glibc 2.25, utilizarea blocării interne s-a " |
| 454 |
"modificat. Blocarea internă este întotdeauna obținută de funcțiile de " |
| 455 |
"semnalizare B<pthread_cond_signal>() și B<pthread_cond_broadcast>(). " |
| 456 |
"Funcția de așteptare obține blocarea dacă procesul de așteptare a fost " |
| 457 |
"întrerupt. Întreruperea poate fi cauzată, de exemplu, de un timp de " |
| 458 |
"expirare specificat și indicată de valoarea de eroare B<ETIMEDOUTA> sau de " |
| 459 |
"un semnal primit, care este indicat de valoarea de eroare B<EINTR>." |
| 460 |
|
| 461 |
#. type: SH |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid "EXAMPLE" |
| 466 |
msgstr "EXEMPLU" |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 470 |
#: opensuse-tumbleweed |
| 471 |
msgid "" |
| 472 |
"Consider two shared variables I<x> and I<y ,> protected by the mutex I<mut>, " |
| 473 |
"and a condition variable I<cond> that is to be signaled whenever I<x> " |
| 474 |
"becomes greater than I<y>." |
| 475 |
msgstr "" |
| 476 |
"Se consideră două variabile partajate I<x> și I<y>, protejate de mutex-ul " |
| 477 |
"I<mut>, și o variabilă de condiție I<cond> care trebuie semnalată ori de " |
| 478 |
"câte ori I<x> devine mai mare decât I<y>." |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
#, no-wrap |
| 484 |
msgid "" |
| 485 |
"B<int x,y;\n" |
| 486 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n" |
| 487 |
"pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n" |
| 488 |
msgstr "" |
| 489 |
"B<int x,y;\n" |
| 490 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n" |
| 491 |
"pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n" |
| 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 "Waiting until I<x> is greater than I<y> is performed as follows:" |
| 497 |
msgstr "" |
| 498 |
"Așteptarea până când I<x> este mai mare decât I<y> se efectuează după cum " |
| 499 |
"urmează:" |
| 500 |
|
| 501 |
#. type: Plain text |
| 502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 503 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 504 |
#, no-wrap |
| 505 |
msgid "" |
| 506 |
"B<pthread_mutex_lock(&mut);\n" |
| 507 |
"while (x E<lt>= y) {\n" |
| 508 |
" pthread_cond_wait(&cond, &mut);\n" |
| 509 |
"}\n" |
| 510 |
"/* operate on x and y */\n" |
| 511 |
"pthread_mutex_unlock(&mut);>\n" |
| 512 |
msgstr "" |
| 513 |
"B<pthread_mutex_lock(&mut);\n" |
| 514 |
"while (x E<lt>= y) {\n" |
| 515 |
" pthread_cond_wait(&cond, &mut);\n" |
| 516 |
"}\n" |
| 517 |
"/* operează asupra lui x și y */\n" |
| 518 |
"pthread_mutex_unlock(&mut);>\n" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "" |
| 524 |
"Modifications on I<x> and I<y> that may cause I<x> to become greater than " |
| 525 |
"I<y> should signal the condition if needed:" |
| 526 |
msgstr "" |
| 527 |
"Modificările lui I<x> și I<y> care pot face ca I<x> să devină mai mare decât " |
| 528 |
"I<y> trebuie să semnalizeze condiția, dacă este necesar:" |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "" |
| 535 |
"B<pthread_mutex_lock(&mut);\n" |
| 536 |
"/* modify x and y */\n" |
| 537 |
"if (x E<gt> y) pthread_cond_broadcast(&cond);\n" |
| 538 |
"pthread_mutex_unlock(&mut);>\n" |
| 539 |
msgstr "" |
| 540 |
"B<pthread_mutex_lock(&mut);\n" |
| 541 |
"/* modificarea lui x și y */\n" |
| 542 |
"if (x E<gt> y) pthread_cond_broadcast(&cond);\n" |
| 543 |
"pthread_mutex_unlock(&mut);>\n" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 547 |
#: opensuse-tumbleweed |
| 548 |
msgid "" |
| 549 |
"If it can be proved that at most one waiting thread needs to be waken up " |
| 550 |
"(for instance, if there are only two threads communicating through I<x> and " |
| 551 |
"I<y>), B<pthread_cond_signal>() can be used as a slightly more efficient " |
| 552 |
"alternative to B<pthread_cond_broadcast>(). In doubt, use " |
| 553 |
"B<pthread_cond_broadcast>()." |
| 554 |
msgstr "" |
| 555 |
"Dacă se poate dovedi că cel mult un singur fir în așteptare trebuie să fie " |
| 556 |
"trezit (de exemplu, dacă există doar două fire care comunică prin I<x> și " |
| 557 |
"I<y>), B<pthread_cond_signal>() poate fi utilizat ca o alternativă puțin mai " |
| 558 |
"eficientă la B<pthread_cond_broadcast>(). În caz de îndoială, utilizați " |
| 559 |
"B<pthread_cond_broadcast>()." |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"To wait for I<x> to become greater than I<y> with a timeout of 5 seconds, do:" |
| 566 |
msgstr "" |
| 567 |
"Pentru a aștepta ca I<x> să devină mai mare decât I<y> cu un timp de " |
| 568 |
"așteptare de 5 secunde, faceți:" |
| 569 |
|
| 570 |
#. type: Plain text |
| 571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 572 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 573 |
#, no-wrap |
| 574 |
msgid "" |
| 575 |
"B<struct timeval now;\n" |
| 576 |
"struct timespec timeout;\n" |
| 577 |
"int retcode;\n" |
| 578 |
"\\&\n" |
| 579 |
"pthread_mutex_lock(&mut);\n" |
| 580 |
"gettimeofday(&now);\n" |
| 581 |
"timeout.tv_sec = now.tv_sec + 5;\n" |
| 582 |
"timeout.tv_nsec = now.tv_usec * 1000;\n" |
| 583 |
"retcode = 0;\n" |
| 584 |
"while (x E<lt>= y && retcode != ETIMEDOUT) {\n" |
| 585 |
" retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n" |
| 586 |
"}\n" |
| 587 |
"if (retcode == ETIMEDOUT) {\n" |
| 588 |
" /* timeout occurred */\n" |
| 589 |
"} else {\n" |
| 590 |
" /* operate on x and y */\n" |
| 591 |
"}\n" |
| 592 |
"pthread_mutex_unlock(&mut);>\n" |
| 593 |
msgstr "" |
| 594 |
"B<struct timeval now;\n" |
| 595 |
"struct timespec timeout;\n" |
| 596 |
"int retcode;\n" |
| 597 |
"\\&\n" |
| 598 |
"pthread_mutex_lock(&mut);\n" |
| 599 |
"gettimeofday(&now);\n" |
| 600 |
"timeout.tv_sec = now.tv_sec + 5;\n" |
| 601 |
"timeout.tv_nsec = now.tv_usec * 1000;\n" |
| 602 |
"retcode = 0;\n" |
| 603 |
"while (x E<lt>= y && retcode != ETIMEDOUT) {\n" |
| 604 |
" retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n" |
| 605 |
"}\n" |
| 606 |
"if (retcode == ETIMEDOUT) {\n" |
| 607 |
" /* a avut loc terminarea timpului de așteptare */\n" |
| 608 |
"} else {\n" |
| 609 |
" /* operează asupra lui x și y */\n" |
| 610 |
"}\n" |
| 611 |
"pthread_mutex_unlock(&mut);>\n" |
| 612 |
|
| 613 |
#. type: TH |
| 614 |
#: debian-trixie |
| 615 |
#, no-wrap |
| 616 |
msgid "2024-06-16" |
| 617 |
msgstr "16 iunie 2024" |
| 618 |
|
| 619 |
#. type: TH |
| 620 |
#: debian-trixie |
| 621 |
#, no-wrap |
| 622 |
msgid "Linux man-pages 6.9.1" |
| 623 |
msgstr "Pagini de manual de Linux 6.9.1" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: debian-trixie fedora-44 fedora-rawhide |
| 627 |
msgid "" |
| 628 |
"A condition (short for ``condition variable'') is a synchronization device " |
| 629 |
"that allows threads to suspend execution and relinquish the processors until " |
| 630 |
"some predicate on shared data is satisfied. The basic operations on " |
| 631 |
"conditions are: signal the condition (when the predicate becomes true), and " |
| 632 |
"wait for the condition, suspending the thread execution until another thread " |
| 633 |
"signals the condition." |
| 634 |
msgstr "" |
| 635 |
"O condiție (prescurtare de la „variabilă de condiție”) este un mecanism de " |
| 636 |
"sincronizare care permite firelor de execuție să suspende execuția și să " |
| 637 |
"cedeze procesoarele până când este satisfăcută o anumită condiție (un " |
| 638 |
"predicat) privind datele partajate. Operațiile de bază ale condițiilor sunt: " |
| 639 |
"semnalizarea condiției (când predicatul devine adevărat) și așteptarea " |
| 640 |
"condiției, suspendând execuția firului până când un alt fir semnalizează " |
| 641 |
"condiția." |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: debian-trixie fedora-44 fedora-rawhide |
| 645 |
msgid "" |
| 646 |
"B<pthread_cond_init> initializes the condition variable I<cond>, using the " |
| 647 |
"condition attributes specified in I<cond_attr>, or default attributes if " |
| 648 |
"I<cond_attr> is B<NULL>. The LinuxThreads implementation supports no " |
| 649 |
"attributes for conditions, hence the I<cond_attr> parameter is actually " |
| 650 |
"ignored." |
| 651 |
msgstr "" |
| 652 |
"B<pthread_cond_init> inițializează variabila de condiție I<cond>, utilizând " |
| 653 |
"atributele de condiție specificate în I<cond_attr> sau atributele implicite " |
| 654 |
"dacă I<cond_attr> este B<NULL>. Implementarea „LinuxThreads” nu acceptă " |
| 655 |
"atribute pentru condiții, prin urmare parametrul I<cond_attr> este de fapt " |
| 656 |
"ignorat." |
| 657 |
|
| 658 |
#. type: Plain text |
| 659 |
#: debian-trixie fedora-44 fedora-rawhide |
| 660 |
msgid "" |
| 661 |
"Variables of type B<pthread_cond_t> can also be initialized statically, " |
| 662 |
"using the constant B<PTHREAD_COND_INITIALIZER>." |
| 663 |
msgstr "" |
| 664 |
"Variabilele de tip B<pthread_cond_t> pot fi, de asemenea, inițializate " |
| 665 |
"static, utilizând constanta B<PTHREAD_COND_INITIALIZER>." |
| 666 |
|
| 667 |
#. type: Plain text |
| 668 |
#: debian-trixie fedora-44 fedora-rawhide |
| 669 |
msgid "" |
| 670 |
"B<pthread_cond_signal> restarts one of the threads that are waiting on the " |
| 671 |
"condition variable I<cond>. If no threads are waiting on I<cond>, nothing " |
| 672 |
"happens. If several threads are waiting on I<cond>, exactly one is " |
| 673 |
"restarted, but it is not specified which." |
| 674 |
msgstr "" |
| 675 |
"B<pthread_cond_signal> repornește unul dintre firele care așteaptă variabila " |
| 676 |
"de condiție I<cond>. În cazul în care niciun fir de execuție nu așteaptă pe " |
| 677 |
"I<cond>, nu se întâmplă nimic. În cazul în care mai multe fire așteaptă pe " |
| 678 |
"I<cond>, se repornește exact unul dintre ele, dar nu se specifică care." |
| 679 |
|
| 680 |
#. type: Plain text |
| 681 |
#: debian-trixie fedora-44 fedora-rawhide |
| 682 |
msgid "" |
| 683 |
"B<pthread_cond_broadcast> restarts all the threads that are waiting on the " |
| 684 |
"condition variable I<cond>. Nothing happens if no threads are waiting on " |
| 685 |
"I<cond>." |
| 686 |
msgstr "" |
| 687 |
"B<pthread_cond_broadcast> repornește toate firele care așteaptă variabila de " |
| 688 |
"condiție I<cond>. Nu se întâmplă nimic dacă niciun fir de execuție nu " |
| 689 |
"așteaptă pe I<cond>." |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: debian-trixie |
| 693 |
msgid "" |
| 694 |
"B<pthread_cond_wait> atomically unlocks the I<mutex> (as per " |
| 695 |
"B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be " |
| 696 |
"signaled. The thread execution is suspended and does not consume any CPU " |
| 697 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 698 |
"by the calling thread on entrance to B<pthread_cond_wait>. Before returning " |
| 699 |
"to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per " |
| 700 |
"B<pthread_lock_mutex>)." |
| 701 |
msgstr "" |
| 702 |
"B<pthread_cond_wait> deblochează atomic I<mutex> (conform " |
| 703 |
"B<pthread_unlock_mutex>) și așteaptă ca variabila de condiție I<cond> să fie " |
| 704 |
"semnalată. Execuția firului este suspendată și nu consumă timp de procesare " |
| 705 |
"până când variabila de condiție este semnalată. I<mutex> trebuie să fie " |
| 706 |
"blocată de firul apelant la intrarea în B<pthread_cond_wait>. Înainte de a " |
| 707 |
"reveni la firul apelant, B<pthread_cond_wait> recuperează I<mutex> (conform " |
| 708 |
"B<pthread_lock_mutex>)." |
| 709 |
|
| 710 |
#. type: Plain text |
| 711 |
#: debian-trixie fedora-44 fedora-rawhide |
| 712 |
msgid "" |
| 713 |
"Unlocking the mutex and suspending on the condition variable is done " |
| 714 |
"atomically. Thus, if all threads always acquire the mutex before signaling " |
| 715 |
"the condition, this guarantees that the condition cannot be signaled (and " |
| 716 |
"thus ignored) between the time a thread locks the mutex and the time it " |
| 717 |
"waits on the condition variable." |
| 718 |
msgstr "" |
| 719 |
"Deblocarea mutex-ului și suspendarea pe variabila de condiție se face " |
| 720 |
"atomic. Astfel, dacă toate firele achiziționează întotdeauna mutex-ul " |
| 721 |
"înainte de a semnaliza condiția, acest lucru garantează că condiția nu poate " |
| 722 |
"fi semnalată (și, prin urmare, ignorată) între momentul în care un fir " |
| 723 |
"blochează mutex-ul și momentul în care așteaptă pe variabila de condiție." |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: debian-trixie fedora-44 fedora-rawhide |
| 727 |
msgid "" |
| 728 |
"B<pthread_cond_timedwait> atomically unlocks I<mutex> and waits on I<cond>, " |
| 729 |
"as B<pthread_cond_wait> does, but it also bounds the duration of the wait. " |
| 730 |
"If I<cond> has not been signaled within the amount of time specified by " |
| 731 |
"I<abstime>, the mutex I<mutex> is re-acquired and B<pthread_cond_timedwait> " |
| 732 |
"returns the error B<ETIMEDOUT>. The I<abstime> parameter specifies an " |
| 733 |
"absolute time, with the same origin as B<time>(2) and B<gettimeofday>(2): an " |
| 734 |
"I<abstime> of 0 corresponds to 00:00:00 GMT, January 1, 1970." |
| 735 |
msgstr "" |
| 736 |
"B<pthread_cond_timedwait> deblochează atomic I<mutex> și așteaptă pe " |
| 737 |
"I<cond>, la fel ca B<pthread_cond_wait>, dar limitează și durata așteptării. " |
| 738 |
"Dacă I<cond> nu a fost semnalată în intervalul de timp specificat de " |
| 739 |
"I<abstime>, mutex-ul I<mutex> este reacceptat din nou, iar " |
| 740 |
"B<pthread_cond_timedwait> returneazǎ eroarea B<ETIMEDOUT>. Parametrul " |
| 741 |
"I<abstime> specifică un timp absolut, cu aceeași origine ca și B<time>(2) și " |
| 742 |
"B<gettimeofday>(2): un I<abstime> de 0 corespunde la 00:00:00 GMT, 1 " |
| 743 |
"ianuarie 1970." |
| 744 |
|
| 745 |
#. type: Plain text |
| 746 |
#: debian-trixie fedora-44 fedora-rawhide |
| 747 |
msgid "" |
| 748 |
"B<pthread_cond_destroy> destroys a condition variable, freeing the resources " |
| 749 |
"it might hold. No threads must be waiting on the condition variable on " |
| 750 |
"entrance to B<pthread_cond_destroy>. In the LinuxThreads implementation, no " |
| 751 |
"resources are associated with condition variables, thus " |
| 752 |
"B<pthread_cond_destroy> actually does nothing except checking that the " |
| 753 |
"condition has no waiting threads." |
| 754 |
msgstr "" |
| 755 |
"B<pthread_cond_destroy> distruge o variabilă de condiție, eliberând " |
| 756 |
"resursele pe care le-ar putea conține. La intrarea în " |
| 757 |
"B<pthread_cond_destroy> nu trebuie să existe fire de execuție care să " |
| 758 |
"aștepte variabila de condiție. În implementarea „LinuxThreads”, nu există " |
| 759 |
"resurse asociate variabilelor de condiție, astfel încât " |
| 760 |
"B<pthread_cond_destroy> nu face de fapt nimic, cu excepția verificării " |
| 761 |
"faptului că nu există fire de execuție în așteptare." |
| 762 |
|
| 763 |
#. type: Plain text |
| 764 |
#: debian-trixie fedora-44 fedora-rawhide |
| 765 |
msgid "" |
| 766 |
"B<pthread_cond_wait> and B<pthread_cond_timedwait> are cancelation points. " |
| 767 |
"If a thread is cancelled while suspended in one of these functions, the " |
| 768 |
"thread immediately resumes execution, then locks again the I<mutex> argument " |
| 769 |
"to B<pthread_cond_wait> and B<pthread_cond_timedwait>, and finally executes " |
| 770 |
"the cancelation. Consequently, cleanup handlers are assured that I<mutex> " |
| 771 |
"is locked when they are called." |
| 772 |
msgstr "" |
| 773 |
"B<pthread_cond_wait> și B<pthread_cond_timedwait> sunt puncte de anulare. " |
| 774 |
"Dacă un fir este anulat în timp ce este suspendat într-una din aceste " |
| 775 |
"funcții, firul își reia imediat execuția, apoi blochează din nou argumentul " |
| 776 |
"I<mutex> la B<pthread_cond_wait> și B<pthread_cond_timedwait> și, în final, " |
| 777 |
"execută anularea. În consecință, gestionarii de curățare sunt asigurați că " |
| 778 |
"I<mutex> este blocat atunci când sunt apelați." |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: debian-trixie fedora-44 fedora-rawhide |
| 782 |
msgid "" |
| 783 |
"The condition functions are not async-signal safe, and should not be called " |
| 784 |
"from a signal handler. In particular, calling B<pthread_cond_signal> or " |
| 785 |
"B<pthread_cond_broadcast> from a signal handler may deadlock the calling " |
| 786 |
"thread." |
| 787 |
msgstr "" |
| 788 |
"Funcțiile de condiție nu sunt sigure pentru semnale asincrone și nu ar " |
| 789 |
"trebui să fie apelate de la un gestionar de semnal. În special, apelarea " |
| 790 |
"B<pthread_cond_signal> sau B<pthread_cond_broadcast> de la un gestionar de " |
| 791 |
"semnal poate bloca firul apelant." |
| 792 |
|
| 793 |
#. type: Plain text |
| 794 |
#: debian-trixie fedora-44 fedora-rawhide |
| 795 |
msgid "" |
| 796 |
"B<pthread_cond_init>, B<pthread_cond_signal>, B<pthread_cond_broadcast>, and " |
| 797 |
"B<pthread_cond_wait> never return an error code." |
| 798 |
msgstr "" |
| 799 |
"B<pthread_cond_init>, B<pthread_cond_signal>, B<pthread_cond_broadcast> și " |
| 800 |
"B<pthread_cond_wait> nu returnează niciodată un cod de eroare." |
| 801 |
|
| 802 |
#. type: Plain text |
| 803 |
#: debian-trixie fedora-44 fedora-rawhide |
| 804 |
msgid "" |
| 805 |
"The B<pthread_cond_timedwait> function returns the following error codes on " |
| 806 |
"error:" |
| 807 |
msgstr "" |
| 808 |
"Funcția B<pthread_cond_timedwait> returnează următoarele coduri de eroare în " |
| 809 |
"caz de eroare:" |
| 810 |
|
| 811 |
#. type: Plain text |
| 812 |
#: debian-trixie fedora-44 fedora-rawhide |
| 813 |
msgid "" |
| 814 |
"The condition variable was not signaled until the timeout specified by " |
| 815 |
"I<abstime>." |
| 816 |
msgstr "" |
| 817 |
"Variabila de condiție nu a fost semnalată până la expirarea timpului de " |
| 818 |
"așteptare specificat de I<abstime>." |
| 819 |
|
| 820 |
#. type: TP |
| 821 |
#: debian-trixie |
| 822 |
#, no-wrap |
| 823 |
msgid "B<EINTR>" |
| 824 |
msgstr "B<EINTR>" |
| 825 |
|
| 826 |
#. type: Plain text |
| 827 |
#: debian-trixie |
| 828 |
msgid "B<pthread_cond_timedwait> was interrupted by a signal." |
| 829 |
msgstr "B<pthread_cond_timedwait> a fost întrerupt de un semnal." |
| 830 |
|
| 831 |
#. type: Plain text |
| 832 |
#: debian-trixie fedora-44 fedora-rawhide |
| 833 |
msgid "" |
| 834 |
"The B<pthread_cond_destroy> function returns the following error code on " |
| 835 |
"error:" |
| 836 |
msgstr "" |
| 837 |
"Funcția B<pthread_cond_destroy> returnează următorul cod de eroare în caz de " |
| 838 |
"eroare:" |
| 839 |
|
| 840 |
#. type: Plain text |
| 841 |
#: debian-trixie fedora-44 fedora-rawhide |
| 842 |
msgid "Some threads are currently waiting on I<cond>." |
| 843 |
msgstr "Unele fire sunt în prezent în așteptare pe I<cond>." |
| 844 |
|
| 845 |
#. type: Plain text |
| 846 |
#: debian-trixie fedora-44 fedora-rawhide |
| 847 |
msgid "" |
| 848 |
"Consider two shared variables I<x> and I<y>, protected by the mutex I<mut>, " |
| 849 |
"and a condition variable I<cond> that is to be signaled whenever I<x> " |
| 850 |
"becomes greater than I<y>." |
| 851 |
msgstr "" |
| 852 |
"Se consideră două variabile partajate I<x> și I<y>, protejate de mutex-ul " |
| 853 |
"I<mut>, și o variabilă de condiție I<cond> care trebuie semnalată ori de " |
| 854 |
"câte ori I<x> devine mai mare decât I<y>." |
| 855 |
|
| 856 |
#. type: Plain text |
| 857 |
#: debian-trixie fedora-44 fedora-rawhide |
| 858 |
msgid "" |
| 859 |
"If it can be proved that at most one waiting thread needs to be waken up " |
| 860 |
"(for instance, if there are only two threads communicating through I<x> and " |
| 861 |
"I<y>), B<pthread_cond_signal> can be used as a slightly more efficient " |
| 862 |
"alternative to B<pthread_cond_broadcast>. In doubt, use " |
| 863 |
"B<pthread_cond_broadcast>." |
| 864 |
msgstr "" |
| 865 |
"Dacă se poate dovedi că cel mult un singur fir în așteptare trebuie să fie " |
| 866 |
"trezit (de exemplu, dacă există doar două fire care comunică prin I<x> și " |
| 867 |
"I<y>), B<pthread_cond_signal> poate fi utilizat ca o alternativă puțin mai " |
| 868 |
"eficientă la B<pthread_cond_broadcast>. În caz de îndoială, utilizați " |
| 869 |
"B<pthread_cond_broadcast>." |
| 870 |
|
| 871 |
#. type: TH |
| 872 |
#: fedora-44 fedora-rawhide |
| 873 |
#, no-wrap |
| 874 |
msgid "2025-01-04" |
| 875 |
msgstr "4 ianuarie 2025" |
| 876 |
|
| 877 |
#. type: TH |
| 878 |
#: fedora-44 fedora-rawhide |
| 879 |
#, no-wrap |
| 880 |
msgid "Linux man-pages 6.13" |
| 881 |
msgstr "Pagini de manual de Linux 6.13" |
| 882 |
|
| 883 |
#. type: Plain text |
| 884 |
#: fedora-44 fedora-rawhide |
| 885 |
msgid "" |
| 886 |
"B<pthread_cond_wait> atomically unlocks the I<mutex> (as per " |
| 887 |
"B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be " |
| 888 |
"signaled. The thread execution is suspended and does not consume any CPU " |
| 889 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 890 |
"by the calling thread on entrance to B<pthread_cond_wait>. Before returning " |
| 891 |
"to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per " |
| 892 |
"B<pthread_mutex_lock>)." |
| 893 |
msgstr "" |
| 894 |
"B<pthread_cond_wait> deblochează atomic I<mutex> (conform " |
| 895 |
"B<pthread_unlock_mutex>) și așteaptă ca variabila de condiție I<cond> să fie " |
| 896 |
"semnalată. Execuția firului este suspendată și nu consumă timp CPU până când " |
| 897 |
"variabila de condiție nu este semnalată. I<mutex> trebuie să fie blocată de " |
| 898 |
"firul apelant la intrarea în B<pthread_cond_wait>. Înainte de a reveni la " |
| 899 |
"firul apelant, B<pthread_cond_wait> recuperează I<mutex> (conform " |
| 900 |
"B<pthread_mutex_lock>)." |
| 901 |
|
| 902 |
#. type: TH |
| 903 |
#: mageia-cauldron |
| 904 |
#, no-wrap |
| 905 |
msgid "2025-10-16" |
| 906 |
msgstr "16 octombrie 2025" |
| 907 |
|
| 908 |
#. type: TH |
| 909 |
#: mageia-cauldron |
| 910 |
#, no-wrap |
| 911 |
msgid "Linux man-pages 6.17" |
| 912 |
msgstr "Pagini de manual de Linux 6.17" |
| 913 |
|
| 914 |
#. type: Plain text |
| 915 |
#: mageia-cauldron |
| 916 |
msgid "" |
| 917 |
"B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per " |
| 918 |
"B<pthread_unlock_mutex>()) and waits for the condition variable I<cond> to " |
| 919 |
"be signaled. The thread execution is suspended and does not consume any CPU " |
| 920 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 921 |
"by the calling thread on entrance to B<pthread_cond_wait>(). Before " |
| 922 |
"returning to the calling thread, B<pthread_cond_wait>() re-acquires " |
| 923 |
"I<mutex> (as per B<pthread_mutex_lock>())." |
| 924 |
msgstr "" |
| 925 |
"B<pthread_cond_wait>() deblochează atomic I<mutex> (conform " |
| 926 |
"B<pthread_unlock_mutex>()) și așteaptă ca variabila de condiție I<cond> să " |
| 927 |
"fie semnalată. Execuția firului este suspendată și nu consumă timp CPU până " |
| 928 |
"când variabila de condiție nu este semnalată. I<mutex> trebuie să fie " |
| 929 |
"blocată de firul apelant la intrarea în B<pthread_cond_wait>(). Înainte de a " |
| 930 |
"reveni la firul apelant, B<pthread_cond_wait>() recuperează I<mutex> " |
| 931 |
"(conform B<pthread_mutex_lock>())." |
| 932 |
|
| 933 |
#. type: TH |
| 934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 935 |
#, no-wrap |
| 936 |
msgid "Linux man-pages (unreleased)" |
| 937 |
msgstr "Pagini de manual Linux (nepublicate)" |