| 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. |
| 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: 2025-06-09 14:14+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.5\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_mutex_init" |
| 25 |
msgstr "pthread_mutex_init" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2025-05-17" |
| 32 |
msgstr "17 mai 2025" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "Pagini de manual de Linux 6.18" |
| 39 |
|
| 40 |
#. type: SH |
| 41 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 42 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "NAME" |
| 45 |
msgstr "NUME" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
msgid "" |
| 51 |
"pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " |
| 52 |
"pthread_mutex_unlock, pthread_mutex_destroy - operations on mutexes" |
| 53 |
msgstr "" |
| 54 |
"pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " |
| 55 |
"pthread_mutex_unlock, pthread_mutex_destroy - operații asupra mutex-urilor" |
| 56 |
|
| 57 |
#. type: SH |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
#, no-wrap |
| 61 |
msgid "SYNOPSIS" |
| 62 |
msgstr "SINOPSIS" |
| 63 |
|
| 64 |
#. type: Plain text |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "B<#include E<lt>pthread.hE<gt>>\n" |
| 69 |
msgstr "B<#include E<lt>pthread.hE<gt>>\n" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "" |
| 76 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 77 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 78 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 79 |
msgstr "" |
| 80 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 81 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 82 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "" |
| 89 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 90 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 91 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 92 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 93 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 94 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 95 |
msgstr "" |
| 96 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 97 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 98 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 99 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 100 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 101 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 102 |
|
| 103 |
#. type: SH |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
#, no-wrap |
| 107 |
msgid "DESCRIPTION" |
| 108 |
msgstr "DESCRIERE" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
msgid "" |
| 114 |
"A mutex is a MUTual EXclusion device, and is useful for protecting shared " |
| 115 |
"data structures from concurrent modifications, and implementing critical " |
| 116 |
"sections and monitors." |
| 117 |
msgstr "" |
| 118 |
"Un mutex este un dispozitiv de EXCLUDERE MUTUALĂ „MUTual EXclusion” și este " |
| 119 |
"util pentru protejarea structurilor de date partajate împotriva " |
| 120 |
"modificărilor simultane și pentru implementarea secțiunilor critice și a " |
| 121 |
"monitorizărilor." |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"A mutex has two possible states: unlocked (not owned by any thread), and " |
| 128 |
"locked (owned by one thread). A mutex can never be owned by two different " |
| 129 |
"threads simultaneously. A thread attempting to lock a mutex that is already " |
| 130 |
"locked by another thread is suspended until the owning thread unlocks the " |
| 131 |
"mutex first." |
| 132 |
msgstr "" |
| 133 |
"Un mutex are două stări posibile: deblocat (nu este deținut de niciun fir) " |
| 134 |
"și blocat (este deținut de un singur fir). Un mutex nu poate fi niciodată " |
| 135 |
"deținut simultan de două fire diferite. Un fir care încearcă să blocheze un " |
| 136 |
"mutex care este deja blocat de un alt fir este suspendat până când firul " |
| 137 |
"proprietar deblochează primul mutex." |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 141 |
#: opensuse-tumbleweed |
| 142 |
msgid "" |
| 143 |
"B<pthread_mutex_init>() initializes the mutex object pointed to by I<mutex> " |
| 144 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 145 |
"I<mutexattr> is NULL, default attributes are used instead." |
| 146 |
msgstr "" |
| 147 |
"B<pthread_mutex_init>() inițializează obiectul mutex indicat de I<mutex> în " |
| 148 |
"conformitate cu atributele mutex specificate în I<mutexattr>. În cazul în " |
| 149 |
"care I<mutexattr> este NULL, se utilizează în schimb atributele implicite." |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 153 |
#: opensuse-tumbleweed |
| 154 |
msgid "" |
| 155 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 156 |
"I<mutex kind>, which is either \"fast\", \"recursive\", or \"error " |
| 157 |
"checking\". The kind of a mutex determines whether it can be locked again " |
| 158 |
"by a thread that already owns it. The default kind is \"fast\". See " |
| 159 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 160 |
msgstr "" |
| 161 |
"Implementarea LinuxThreads acceptă doar un singur atribut mutex, I<mutex " |
| 162 |
"kind>, care este fie „fast”, „recursive”, fie „error checking”. Tipul unui " |
| 163 |
"mutex determină dacă acesta poate fi blocat din nou de un fir care îl deține " |
| 164 |
"deja. Tipul implicit este „fast”. A se vedea B<pthread_mutexattr_init>(3) " |
| 165 |
"pentru mai multe informații despre atributele mutex-urilor." |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 169 |
#: opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"Variables of type I<pthread_mutex_t> can also be initialized statically, " |
| 172 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 173 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 174 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 175 |
msgstr "" |
| 176 |
"Variabilele de tip I<pthread_mutex_t> pot fi, de asemenea, inițializate " |
| 177 |
"static, utilizând constantele B<PTHREAD_MUTEX_INITIALIZER> (pentru mutex-uri " |
| 178 |
"rapide), B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (pentru mutex-uri " |
| 179 |
"recursive) și B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (pentru mutex-uri " |
| 180 |
"de verificare a erorilor)." |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 184 |
#: opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"B<pthread_mutex_lock>() locks the given mutex. If the mutex is currently " |
| 187 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 188 |
"B<pthread_mutex_lock>() returns immediately. If the mutex is already " |
| 189 |
"locked by another thread, B<pthread_mutex_lock>() suspends the calling " |
| 190 |
"thread until the mutex is unlocked." |
| 191 |
msgstr "" |
| 192 |
"B<pthread_mutex_lock>() blochează mutex-ul dat. Dacă mutex-ul este în " |
| 193 |
"prezent deblocat, acesta devine blocat și este deținut de firul apelant, iar " |
| 194 |
"B<pthread_mutex_lock>() returnează imediat. Dacă mutex-ul este deja blocat " |
| 195 |
"de un alt fir de execuție, B<pthread_mutex_lock>() suspendă firul apelant " |
| 196 |
"până când mutex-ul este deblocat." |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 200 |
#: opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 203 |
"B<pthread_mutex_lock>() depends on the kind of the mutex. If the mutex is " |
| 204 |
"of the \"fast\" kind, the calling thread is suspended until the mutex is " |
| 205 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 206 |
"mutex is of the \"error checking\" kind, B<pthread_mutex_lock>() returns " |
| 207 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 208 |
"\"recursive\" kind, B<pthread_mutex_lock>() succeeds and returns " |
| 209 |
"immediately, recording the number of times the calling thread has locked the " |
| 210 |
"mutex. An equal number of B<pthread_mutex_unlock>() operations must be " |
| 211 |
"performed before the mutex returns to the unlocked state." |
| 212 |
msgstr "" |
| 213 |
"În cazul în care mutex-ul este deja blocat de firul apelant, comportamentul " |
| 214 |
"lui B<pthread_mutex_lock>() depinde de tipul mutex-ului. În cazul în care " |
| 215 |
"mutex-ul este de tipul „fast”, firul apelant este suspendat până când mutex-" |
| 216 |
"ul este deblocat, ceea ce duce efectiv la blocarea firului apelant. În cazul " |
| 217 |
"în care mutex-ul este de tipul „error checking”, B<pthread_mutex_lock> " |
| 218 |
"returnează imediat cu codul de eroare B<EDEADLK>. În cazul în care mutex-ul " |
| 219 |
"este de tip „recursive”, B<pthread_mutex_lock>() reușește și returnează " |
| 220 |
"imediat, înregistrând numărul de blocări ale mutex-ului de către firul " |
| 221 |
"apelant. Un număr egal de operații B<pthread_mutex_unlock>() trebuie " |
| 222 |
"efectuate înainte ca mutex-ul să revină la starea deblocată." |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 226 |
#: opensuse-tumbleweed |
| 227 |
msgid "" |
| 228 |
"B<pthread_mutex_trylock>() behaves identically to B<pthread_mutex_lock>(), " |
| 229 |
"except that it does not block the calling thread if the mutex is already " |
| 230 |
"locked by another thread (or by the calling thread in the case of a \"fast\" " |
| 231 |
"mutex). Instead, B<pthread_mutex_trylock>() returns immediately with the " |
| 232 |
"error code B<EBUSY>." |
| 233 |
msgstr "" |
| 234 |
"B<pthread_mutex_trylock>() se comportă în mod identic cu " |
| 235 |
"B<pthread_mutex_lock>(), cu excepția faptului că nu blochează firul apelant " |
| 236 |
"dacă mutex-ul este deja blocat de un alt fir (sau de firul apelant în cazul " |
| 237 |
"unui mutex „fast”). În schimb, B<pthread_mutex_trylock>() returnează imediat " |
| 238 |
"cu codul de eroare B<EBUSY>." |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 242 |
#: opensuse-tumbleweed |
| 243 |
msgid "" |
| 244 |
"B<pthread_mutex_unlock>() unlocks the given mutex. The mutex is assumed to " |
| 245 |
"be locked and owned by the calling thread on entrance to " |
| 246 |
"B<pthread_mutex_unlock>(). If the mutex is of the \"fast\" kind, " |
| 247 |
"B<pthread_mutex_unlock>() always returns it to the unlocked state. If it " |
| 248 |
"is of the \"recursive\" kind, it decrements the locking count of the mutex " |
| 249 |
"(number of B<pthread_mutex_lock>() operations performed on it by the " |
| 250 |
"calling thread), and only when this count reaches zero is the mutex actually " |
| 251 |
"unlocked." |
| 252 |
msgstr "" |
| 253 |
"B<pthread_mutex_unlock>() deblochează mutex-ul dat. Se presupune că mutex-ul " |
| 254 |
"este blocat și deținut de firul apelant la intrarea în " |
| 255 |
"B<pthread_mutex_unlock>(). În cazul în care mutex-ul este de tip „fast”, " |
| 256 |
"B<pthread_mutex_unlock>() îl readuce întotdeauna în starea deblocată. În " |
| 257 |
"cazul în care este de tip „recursive”, descrește numărul de blocaje ale " |
| 258 |
"mutex-ului (numărul de operații B<pthread_mutex_lock>() efectuate asupra " |
| 259 |
"acestuia de către firul apelant) și numai atunci când acest număr ajunge la " |
| 260 |
"zero, mutex-ul este efectiv deblocat." |
| 261 |
|
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 264 |
#: opensuse-tumbleweed |
| 265 |
msgid "" |
| 266 |
"On \"error checking\" and \"recursive\" mutexes, B<pthread_mutex_unlock>() " |
| 267 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 268 |
"it was locked by the same thread that is now calling " |
| 269 |
"B<pthread_mutex_unlock>(). If these conditions are not met, an error code " |
| 270 |
"is returned and the mutex remains unchanged. \"Fast\" mutexes perform no " |
| 271 |
"such checks, thus allowing a locked mutex to be unlocked by a thread other " |
| 272 |
"than its owner. This is non-portable behavior and must not be relied upon." |
| 273 |
msgstr "" |
| 274 |
"În cazul mutex-urilor „error checking” și „recursive”, " |
| 275 |
"B<pthread_mutex_unlock>() verifică de fapt în timpul execuției dacă mutex-ul " |
| 276 |
"este blocat la intrare și dacă a fost blocat de același fir care apelează " |
| 277 |
"acum B<pthread_mutex_unlock>(). În cazul în care aceste condiții nu sunt " |
| 278 |
"îndeplinite, se returnează un cod de eroare, iar mutex-ul rămâne neschimbat. " |
| 279 |
"Mutex-urile „fast” nu efectuează astfel de verificări, permițând astfel ca " |
| 280 |
"un mutex blocat să fie deblocat de către un alt fir de execuție decât " |
| 281 |
"proprietarul său. Acesta este un comportament neportabil și nu trebuie să se " |
| 282 |
"bazeze pe el." |
| 283 |
|
| 284 |
#. type: Plain text |
| 285 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 286 |
#: opensuse-tumbleweed |
| 287 |
msgid "" |
| 288 |
"B<pthread_mutex_destroy>() destroys a mutex object, freeing the resources " |
| 289 |
"it might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 290 |
"implementation, no resources are associated with mutex objects, thus " |
| 291 |
"B<pthread_mutex_destroy>() actually does nothing except checking that the " |
| 292 |
"mutex is unlocked." |
| 293 |
msgstr "" |
| 294 |
"B<pthread_mutex_destroy>() distruge un obiect mutex, eliberând resursele pe " |
| 295 |
"care le-ar putea deține. Mutex-ul trebuie să fie deblocat la intrare. În " |
| 296 |
"implementarea LinuxThreads, nicio resursă nu este asociată cu obiectele " |
| 297 |
"mutex, astfel încât B<pthread_mutex_destroy>() nu face de fapt nimic, cu " |
| 298 |
"excepția verificării faptului că mutex-ul este deblocat." |
| 299 |
|
| 300 |
#. type: SH |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "CANCELLATION" |
| 305 |
msgstr "ANULARE" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 309 |
#: opensuse-tumbleweed |
| 310 |
msgid "" |
| 311 |
"None of the mutex functions is a cancelation point, not even " |
| 312 |
"B<pthread_mutex_lock>(), in spite of the fact that it can suspend a thread " |
| 313 |
"for arbitrary durations. This way, the status of mutexes at cancelation " |
| 314 |
"points is predictable, allowing cancelation handlers to unlock precisely " |
| 315 |
"those mutexes that need to be unlocked before the thread stops executing. " |
| 316 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 317 |
"for extended periods of time." |
| 318 |
msgstr "" |
| 319 |
"Niciuna dintre funcțiile mutex nu este un punct de anulare, nici măcar " |
| 320 |
"B<pthread_mutex_lock>(), în ciuda faptului că poate suspenda un fir de " |
| 321 |
"execuție pentru durate arbitrare. În acest fel, starea mutex-urilor la " |
| 322 |
"punctele de anulare este previzibilă, permițând operatorilor de anulare să " |
| 323 |
"deblocheze exact acele mutex-uri care trebuie deblocate înainte ca firul să " |
| 324 |
"se oprească din execuție. În consecință, firele care utilizează anularea " |
| 325 |
"amânată nu ar trebui să dețină niciodată un mutex pentru perioade lungi de " |
| 326 |
"timp." |
| 327 |
|
| 328 |
#. type: SH |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
#, no-wrap |
| 332 |
msgid "ASYNC-SIGNAL SAFETY" |
| 333 |
msgstr "SIGURANȚA SEMNALELOR ASINCRONE" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 337 |
#: opensuse-tumbleweed |
| 338 |
msgid "" |
| 339 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 340 |
"should not be called from a signal handler. In particular, calling " |
| 341 |
"B<pthread_mutex_lock>() or B<pthread_mutex_unlock>() from a signal handler " |
| 342 |
"may deadlock the calling thread." |
| 343 |
msgstr "" |
| 344 |
"Funcțiile mutex nu sunt sigure pentru semnalul asincron. Acest lucru " |
| 345 |
"înseamnă că nu trebuie apelate de la un gestionar de semnal. În special, " |
| 346 |
"apelarea funcțiilor B<pthread_mutex_lock>() sau B<pthread_mutex_unlock>() de " |
| 347 |
"la un gestionar de semnal poate bloca firul apelant." |
| 348 |
|
| 349 |
#. type: SH |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
#, no-wrap |
| 353 |
msgid "RETURN VALUE" |
| 354 |
msgstr "VALOAREA RETURNATĂ" |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 358 |
#: opensuse-tumbleweed |
| 359 |
msgid "" |
| 360 |
"B<pthread_mutex_init>() always returns 0. The other mutex functions return " |
| 361 |
"0 on success and a non-zero error code on error." |
| 362 |
msgstr "" |
| 363 |
"B<pthread_mutex_init>() returnează întotdeauna 0. Celelalte funcții mutex " |
| 364 |
"returnează 0 în caz de succes și un cod de eroare diferit de zero în caz de " |
| 365 |
"eroare." |
| 366 |
|
| 367 |
#. type: SH |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid "ERRORS" |
| 372 |
msgstr "ERORI-IEȘIRE" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 376 |
#: opensuse-tumbleweed |
| 377 |
msgid "" |
| 378 |
"The B<pthread_mutex_lock>() function returns the following error code on " |
| 379 |
"error:" |
| 380 |
msgstr "" |
| 381 |
"Funcția B<pthread_mutex_lock>() returnează următorul cod de eroare în caz de " |
| 382 |
"eroare:" |
| 383 |
|
| 384 |
#. type: TP |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, no-wrap |
| 388 |
msgid "B<EINVAL>" |
| 389 |
msgstr "B<EINVAL>" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
msgid "The mutex has not been properly initialized." |
| 395 |
msgstr "Mutex-ul nu a fost inițializat corespunzător." |
| 396 |
|
| 397 |
#. type: TP |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
#, no-wrap |
| 401 |
msgid "B<EDEADLK>" |
| 402 |
msgstr "B<EDEADLK>" |
| 403 |
|
| 404 |
#. type: Plain text |
| 405 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 406 |
#: opensuse-tumbleweed |
| 407 |
msgid "" |
| 408 |
"The mutex is already locked by the calling thread (\"error checking\" " |
| 409 |
"mutexes only)." |
| 410 |
msgstr "" |
| 411 |
"Mutex-ul este deja blocat de firul apelant (numai mutex-urile „error " |
| 412 |
"checking”)." |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 416 |
#: opensuse-tumbleweed |
| 417 |
msgid "" |
| 418 |
"The B<pthread_mutex_trylock>() function returns the following error codes " |
| 419 |
"on error:" |
| 420 |
msgstr "" |
| 421 |
"Funcția B<pthread_mutex_trylock>() returnează următoarele coduri de eroare " |
| 422 |
"în caz de eroare:" |
| 423 |
|
| 424 |
#. type: TP |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "B<EBUSY>" |
| 429 |
msgstr "B<EBUSY>" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "The mutex could not be acquired because it was currently locked." |
| 435 |
msgstr "Mutex-ul nu a putut fi achiziționat deoarece era blocat în prezent." |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 439 |
#: opensuse-tumbleweed |
| 440 |
msgid "" |
| 441 |
"The B<pthread_mutex_unlock>() function returns the following error code on " |
| 442 |
"error:" |
| 443 |
msgstr "" |
| 444 |
"Funcția B<pthread_mutex_unlock>() returnează următorul cod de eroare în caz " |
| 445 |
"de eroare:" |
| 446 |
|
| 447 |
#. type: TP |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "B<EPERM>" |
| 452 |
msgstr "B<EPERM>" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 456 |
#: opensuse-tumbleweed |
| 457 |
msgid "" |
| 458 |
"The calling thread does not own the mutex (\"error checking\" mutexes only)." |
| 459 |
msgstr "Firul apelant nu deține mutex-ul (numai mutex-urile „error checking”)." |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 463 |
#: opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"The B<pthread_mutex_destroy>() function returns the following error code on " |
| 466 |
"error:" |
| 467 |
msgstr "" |
| 468 |
"Funcția B<pthread_mutex_destroy>() returnează următorul cod de eroare în caz " |
| 469 |
"de eroare:" |
| 470 |
|
| 471 |
#. type: Plain text |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
msgid "The mutex is currently locked." |
| 475 |
msgstr "Mutex-ul este blocat în prezent." |
| 476 |
|
| 477 |
#. type: SH |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "SEE ALSO" |
| 482 |
msgstr "CONSULTAȚI ȘI" |
| 483 |
|
| 484 |
#. type: Plain text |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
msgid "" |
| 488 |
"B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " |
| 489 |
"B<pthread_cancel>(3)." |
| 490 |
msgstr "" |
| 491 |
"B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " |
| 492 |
"B<pthread_cancel>(3)." |
| 493 |
|
| 494 |
#. type: SH |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
#, no-wrap |
| 498 |
msgid "EXAMPLE" |
| 499 |
msgstr "EXEMPLU" |
| 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 |
msgid "A shared global variable I<x> can be protected by a mutex as follows:" |
| 505 |
msgstr "" |
| 506 |
"O variabilă globală partajată I<x> poate fi protejată de un mutex după cum " |
| 507 |
"urmează:" |
| 508 |
|
| 509 |
#. type: Plain text |
| 510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 512 |
#, no-wrap |
| 513 |
msgid "" |
| 514 |
"B<int x;\n" |
| 515 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 516 |
msgstr "" |
| 517 |
"B<int x;\n" |
| 518 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 522 |
#: opensuse-tumbleweed |
| 523 |
msgid "" |
| 524 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 525 |
"B<pthread_mutex_lock>() and B<pthread_mutex_unlock>() as follows:" |
| 526 |
msgstr "" |
| 527 |
"Toate accesările și modificările la I<x> trebuie să fie între paranteze prin " |
| 528 |
"apeluri la B<pthread_mutex_lock>() și B<pthread_mutex_unlock>() după cum " |
| 529 |
"urmează:" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
#, no-wrap |
| 535 |
msgid "" |
| 536 |
"B<pthread_mutex_lock(&mut);\n" |
| 537 |
"/* operate on x */\n" |
| 538 |
"pthread_mutex_unlock(&mut);>\n" |
| 539 |
msgstr "" |
| 540 |
"B<pthread_mutex_lock(&mut);\n" |
| 541 |
"/* operează pe x */\n" |
| 542 |
"pthread_mutex_unlock(&mut);>\n" |
| 543 |
|
| 544 |
#. type: TH |
| 545 |
#: debian-trixie fedora-44 fedora-rawhide |
| 546 |
#, no-wrap |
| 547 |
msgid "2024-06-16" |
| 548 |
msgstr "16 iunie 2024" |
| 549 |
|
| 550 |
#. type: TH |
| 551 |
#: debian-trixie |
| 552 |
#, no-wrap |
| 553 |
msgid "Linux man-pages 6.9.1" |
| 554 |
msgstr "Pagini de manual de Linux 6.9.1" |
| 555 |
|
| 556 |
#. type: Plain text |
| 557 |
#: debian-trixie fedora-44 fedora-rawhide |
| 558 |
msgid "" |
| 559 |
"B<pthread_mutex_init> initializes the mutex object pointed to by I<mutex> " |
| 560 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 561 |
"I<mutexattr> is B<NULL>, default attributes are used instead." |
| 562 |
msgstr "" |
| 563 |
"B<pthread_mutex_init> inițializează obiectul mutex indicat de I<mutex> în " |
| 564 |
"conformitate cu atributele mutex specificate în I<mutexattr>. În cazul în " |
| 565 |
"care I<mutexattr> este B<NULL>, se utilizează în schimb atributele implicite." |
| 566 |
|
| 567 |
#. type: Plain text |
| 568 |
#: debian-trixie fedora-44 fedora-rawhide |
| 569 |
msgid "" |
| 570 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 571 |
"I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " |
| 572 |
"checking''. The kind of a mutex determines whether it can be locked again " |
| 573 |
"by a thread that already owns it. The default kind is ``fast''. See " |
| 574 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 575 |
msgstr "" |
| 576 |
"Implementarea LinuxThreads acceptă doar un singur atribut mutex, I<mutex " |
| 577 |
"kind>, care este fie „fast”, „recursive”, fie „error checking”. Tipul unui " |
| 578 |
"mutex determină dacă acesta poate fi blocat din nou de un fir care îl deține " |
| 579 |
"deja. Tipul implicit este „fast”. A se vedea B<pthread_mutexattr_init>(3) " |
| 580 |
"pentru mai multe informații despre atributele mutex-urilor." |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: debian-trixie fedora-44 fedora-rawhide |
| 584 |
msgid "" |
| 585 |
"Variables of type B<pthread_mutex_t> can also be initialized statically, " |
| 586 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 587 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 588 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 589 |
msgstr "" |
| 590 |
"Variabilele de tip B<pthread_mutex_t> pot fi, de asemenea, inițializate " |
| 591 |
"static, utilizând constantele B<PTHREAD_MUTEX_INITIALIZER> (pentru mutex-uri " |
| 592 |
"rapide), B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (pentru mutex-uri " |
| 593 |
"recursive) și B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (pentru mutex-uri " |
| 594 |
"de verificare a erorilor)." |
| 595 |
|
| 596 |
#. type: Plain text |
| 597 |
#: debian-trixie fedora-44 fedora-rawhide |
| 598 |
msgid "" |
| 599 |
"B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " |
| 600 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 601 |
"B<pthread_mutex_lock> returns immediately. If the mutex is already locked " |
| 602 |
"by another thread, B<pthread_mutex_lock> suspends the calling thread until " |
| 603 |
"the mutex is unlocked." |
| 604 |
msgstr "" |
| 605 |
"B<pthread_mutex_lock> blochează mutex-ul dat. Dacă mutex-ul este în prezent " |
| 606 |
"deblocat, acesta devine blocat și este deținut de firul apelant, iar " |
| 607 |
"B<pthread_mutex_lock> returnează imediat. Dacă mutex-ul este deja blocat de " |
| 608 |
"un alt fir de execuție, B<pthread_mutex_lock> suspendă firul apelant până " |
| 609 |
"când mutex-ul este deblocat." |
| 610 |
|
| 611 |
#. type: Plain text |
| 612 |
#: debian-trixie fedora-44 fedora-rawhide |
| 613 |
msgid "" |
| 614 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 615 |
"B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is of " |
| 616 |
"the ``fast'' kind, the calling thread is suspended until the mutex is " |
| 617 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 618 |
"mutex is of the ``error checking'' kind, B<pthread_mutex_lock> returns " |
| 619 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 620 |
"``recursive'' kind, B<pthread_mutex_lock> succeeds and returns immediately, " |
| 621 |
"recording the number of times the calling thread has locked the mutex. An " |
| 622 |
"equal number of B<pthread_mutex_unlock> operations must be performed before " |
| 623 |
"the mutex returns to the unlocked state." |
| 624 |
msgstr "" |
| 625 |
"În cazul în care mutex-ul este deja blocat de firul apelant, comportamentul " |
| 626 |
"lui B<pthread_mutex_lock> depinde de tipul mutex-ului. În cazul în care " |
| 627 |
"mutex-ul este de tipul „fast”, firul apelant este suspendat până când mutex-" |
| 628 |
"ul este deblocat, ceea ce duce efectiv la blocarea firului apelant. În cazul " |
| 629 |
"în care mutex-ul este de tipul „error checking”, B<pthread_mutex_lock> " |
| 630 |
"returnează imediat cu codul de eroare B<EDEADLK>. În cazul în care mutex-ul " |
| 631 |
"este de tip „recursive”, B<pthread_mutex_lock> reușește și returnează " |
| 632 |
"imediat, înregistrând numărul de blocări ale mutex-ului de către firul " |
| 633 |
"apelant. Un număr egal de operații B<pthread_mutex_unlock> trebuie efectuate " |
| 634 |
"înainte ca mutex-ul să revină la starea deblocată." |
| 635 |
|
| 636 |
#. type: Plain text |
| 637 |
#: debian-trixie fedora-44 fedora-rawhide |
| 638 |
msgid "" |
| 639 |
"B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " |
| 640 |
"except that it does not block the calling thread if the mutex is already " |
| 641 |
"locked by another thread (or by the calling thread in the case of a ``fast'' " |
| 642 |
"mutex). Instead, B<pthread_mutex_trylock> returns immediately with the " |
| 643 |
"error code B<EBUSY>." |
| 644 |
msgstr "" |
| 645 |
"B<pthread_mutex_trylock> se comportă în mod identic cu " |
| 646 |
"B<pthread_mutex_lock>, cu excepția faptului că nu blochează firul apelant " |
| 647 |
"dacă mutex-ul este deja blocat de un alt fir (sau de firul apelant în cazul " |
| 648 |
"unui mutex „fast”). În schimb, B<pthread_mutex_trylock> returnează imediat " |
| 649 |
"cu codul de eroare B<EBUSY>." |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: debian-trixie fedora-44 fedora-rawhide |
| 653 |
msgid "" |
| 654 |
"B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to be " |
| 655 |
"locked and owned by the calling thread on entrance to " |
| 656 |
"B<pthread_mutex_unlock>. If the mutex is of the ``fast'' kind, " |
| 657 |
"B<pthread_mutex_unlock> always returns it to the unlocked state. If it is " |
| 658 |
"of the ``recursive'' kind, it decrements the locking count of the mutex " |
| 659 |
"(number of B<pthread_mutex_lock> operations performed on it by the calling " |
| 660 |
"thread), and only when this count reaches zero is the mutex actually " |
| 661 |
"unlocked." |
| 662 |
msgstr "" |
| 663 |
"B<pthread_mutex_unlock> deblochează mutex-ul dat. Se presupune că mutex-ul " |
| 664 |
"este blocat și deținut de firul apelant la intrarea în " |
| 665 |
"B<pthread_mutex_unlock>. În cazul în care mutex-ul este de tip „fast”, " |
| 666 |
"B<pthread_mutex_unlock> îl readuce întotdeauna în starea deblocată. În cazul " |
| 667 |
"în care este de tip „recursive”, B descrește numărul de blocaje ale mutex-" |
| 668 |
"ului (numărul de operații B<pthread_mutex_lock> efectuate asupra acestuia de " |
| 669 |
"către firul apelant) și numai atunci când acest număr ajunge la zero, mutex-" |
| 670 |
"ul este efectiv deblocat." |
| 671 |
|
| 672 |
#. type: Plain text |
| 673 |
#: debian-trixie fedora-44 fedora-rawhide |
| 674 |
msgid "" |
| 675 |
"On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " |
| 676 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 677 |
"it was locked by the same thread that is now calling " |
| 678 |
"B<pthread_mutex_unlock>. If these conditions are not met, an error code is " |
| 679 |
"returned and the mutex remains unchanged. ``Fast'' mutexes perform no such " |
| 680 |
"checks, thus allowing a locked mutex to be unlocked by a thread other than " |
| 681 |
"its owner. This is non-portable behavior and must not be relied upon." |
| 682 |
msgstr "" |
| 683 |
"În cazul mutex-urilor „error checking” și „recursive”, " |
| 684 |
"B<pthread_mutex_unlock> verifică de fapt în timpul execuției dacă mutex-ul " |
| 685 |
"este blocat la intrare și dacă a fost blocat de același fir care apelează " |
| 686 |
"acum B<pthread_mutex_unlock>. În cazul în care aceste condiții nu sunt " |
| 687 |
"îndeplinite, se returnează un cod de eroare, iar mutex-ul rămâne neschimbat. " |
| 688 |
"Mutex-urile „fast” nu efectuează astfel de verificări, permițând astfel ca " |
| 689 |
"un mutex blocat să fie deblocat de către un alt fir de execuție decât " |
| 690 |
"proprietarul său. Acesta este un comportament neportabil și nu trebuie să se " |
| 691 |
"bazeze pe el." |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: debian-trixie fedora-44 fedora-rawhide |
| 695 |
msgid "" |
| 696 |
"B<pthread_mutex_destroy> destroys a mutex object, freeing the resources it " |
| 697 |
"might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 698 |
"implementation, no resources are associated with mutex objects, thus " |
| 699 |
"B<pthread_mutex_destroy> actually does nothing except checking that the " |
| 700 |
"mutex is unlocked." |
| 701 |
msgstr "" |
| 702 |
"B<pthread_mutex_destroy> distruge un obiect mutex, eliberând resursele pe " |
| 703 |
"care le-ar putea deține. Mutex-ul trebuie să fie deblocat la intrare. În " |
| 704 |
"implementarea LinuxThreads, nicio resursă nu este asociată cu obiectele " |
| 705 |
"mutex, astfel încât B<pthread_mutex_destroy> nu face de fapt nimic, cu " |
| 706 |
"excepția verificării faptului că mutex-ul este deblocat." |
| 707 |
|
| 708 |
#. type: Plain text |
| 709 |
#: debian-trixie fedora-44 fedora-rawhide |
| 710 |
msgid "" |
| 711 |
"None of the mutex functions is a cancelation point, not even " |
| 712 |
"B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " |
| 713 |
"arbitrary durations. This way, the status of mutexes at cancelation points " |
| 714 |
"is predictable, allowing cancelation handlers to unlock precisely those " |
| 715 |
"mutexes that need to be unlocked before the thread stops executing. " |
| 716 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 717 |
"for extended periods of time." |
| 718 |
msgstr "" |
| 719 |
"Niciuna dintre funcțiile mutex nu este un punct de anulare, nici măcar " |
| 720 |
"B<pthread_mutex_lock>, în ciuda faptului că poate suspenda un fir de " |
| 721 |
"execuție pentru durate arbitrare. În acest fel, starea mutex-urilor la " |
| 722 |
"punctele de anulare este previzibilă, permițând operatorilor de anulare să " |
| 723 |
"deblocheze exact acele mutex-uri care trebuie deblocate înainte ca firul să " |
| 724 |
"se oprească din execuție. În consecință, firele care utilizează anularea " |
| 725 |
"amânată nu ar trebui să dețină niciodată un mutex pentru perioade lungi de " |
| 726 |
"timp." |
| 727 |
|
| 728 |
#. type: Plain text |
| 729 |
#: debian-trixie fedora-44 fedora-rawhide |
| 730 |
msgid "" |
| 731 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 732 |
"should not be called from a signal handler. In particular, calling " |
| 733 |
"B<pthread_mutex_lock> or B<pthread_mutex_unlock> from a signal handler may " |
| 734 |
"deadlock the calling thread." |
| 735 |
msgstr "" |
| 736 |
"Funcțiile mutex nu sunt sigure pentru semnalul asincron. Acest lucru " |
| 737 |
"înseamnă că nu trebuie apelate de la un gestionar de semnal. În special, " |
| 738 |
"apelarea funcțiilor B<pthread_mutex_lock> sau B<pthread_mutex_unlock> de la " |
| 739 |
"un gestionar de semnal poate bloca firul apelant." |
| 740 |
|
| 741 |
#. type: Plain text |
| 742 |
#: debian-trixie fedora-44 fedora-rawhide |
| 743 |
msgid "" |
| 744 |
"B<pthread_mutex_init> always returns 0. The other mutex functions return 0 " |
| 745 |
"on success and a non-zero error code on error." |
| 746 |
msgstr "" |
| 747 |
"B<pthread_mutex_init> returnează întotdeauna 0. Celelalte funcții mutex " |
| 748 |
"returnează 0 în caz de succes și un cod de eroare diferit de zero în caz de " |
| 749 |
"eroare." |
| 750 |
|
| 751 |
#. type: Plain text |
| 752 |
#: debian-trixie fedora-44 fedora-rawhide |
| 753 |
msgid "" |
| 754 |
"The B<pthread_mutex_lock> function returns the following error code on error:" |
| 755 |
msgstr "" |
| 756 |
"Funcția B<pthread_mutex_lock> returnează următorul cod de eroare în caz de " |
| 757 |
"eroare:" |
| 758 |
|
| 759 |
#. type: Plain text |
| 760 |
#: debian-trixie fedora-44 fedora-rawhide |
| 761 |
msgid "" |
| 762 |
"The mutex is already locked by the calling thread (``error checking'' " |
| 763 |
"mutexes only)." |
| 764 |
msgstr "" |
| 765 |
"Mutex-ul este deja blocat de firul apelant (numai mutex-urile „error " |
| 766 |
"checking”)." |
| 767 |
|
| 768 |
#. type: Plain text |
| 769 |
#: debian-trixie fedora-44 fedora-rawhide |
| 770 |
msgid "" |
| 771 |
"The B<pthread_mutex_trylock> function returns the following error codes on " |
| 772 |
"error:" |
| 773 |
msgstr "" |
| 774 |
"Funcția B<pthread_mutex_trylock> returnează următoarele coduri de eroare în " |
| 775 |
"caz de eroare:" |
| 776 |
|
| 777 |
#. type: Plain text |
| 778 |
#: debian-trixie fedora-44 fedora-rawhide |
| 779 |
msgid "" |
| 780 |
"The B<pthread_mutex_unlock> function returns the following error code on " |
| 781 |
"error:" |
| 782 |
msgstr "" |
| 783 |
"Funcția B<pthread_mutex_unlock> returnează următorul cod de eroare în caz de " |
| 784 |
"eroare:" |
| 785 |
|
| 786 |
#. type: Plain text |
| 787 |
#: debian-trixie fedora-44 fedora-rawhide |
| 788 |
msgid "" |
| 789 |
"The calling thread does not own the mutex (``error checking'' mutexes only)." |
| 790 |
msgstr "Firul apelant nu deține mutex-ul (numai mutex-urile „error checking”)." |
| 791 |
|
| 792 |
#. type: Plain text |
| 793 |
#: debian-trixie fedora-44 fedora-rawhide |
| 794 |
msgid "" |
| 795 |
"The B<pthread_mutex_destroy> function returns the following error code on " |
| 796 |
"error:" |
| 797 |
msgstr "" |
| 798 |
"Funcția B<pthread_mutex_destroy> returnează următorul cod de eroare în caz " |
| 799 |
"de eroare:" |
| 800 |
|
| 801 |
#. type: Plain text |
| 802 |
#: debian-trixie fedora-44 fedora-rawhide |
| 803 |
msgid "" |
| 804 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 805 |
"B<pthread_mutex_lock> and B<pthread_mutex_unlock> as follows:" |
| 806 |
msgstr "" |
| 807 |
"Toate accesările și modificările la I<x> trebuie să fie între paranteze prin " |
| 808 |
"apeluri la B<pthread_mutex_lock> și B<pthread_mutex_unlock> după cum urmează:" |
| 809 |
|
| 810 |
#. type: TH |
| 811 |
#: fedora-44 fedora-rawhide |
| 812 |
#, no-wrap |
| 813 |
msgid "Linux man-pages 6.13" |
| 814 |
msgstr "Pagini de manual de Linux 6.13" |
| 815 |
|
| 816 |
#. type: TH |
| 817 |
#: mageia-cauldron |
| 818 |
#, no-wrap |
| 819 |
msgid "Linux man-pages 6.17" |
| 820 |
msgstr "Pagini de manual de Linux 6.17" |
| 821 |
|
| 822 |
#. type: TH |
| 823 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 824 |
#, no-wrap |
| 825 |
msgid "Linux man-pages (unreleased)" |
| 826 |
msgstr "Pagini de manual Linux (nepublicate)" |