| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-02 20:00+0400\n" |
| 10 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 11 |
"Language-Team: Arabic <[email protected]>\n" |
| 12 |
"Language: ar\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=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
| 17 |
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 18 |
"X-Generator: Lokalize 23.08.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 مايو 2025" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "صفحات دليل لينكس 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 "الاسم" |
| 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 - عمليات على كائنات الاستبعاد " |
| 56 |
"المتبادل" |
| 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 "موجز" |
| 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 "" |
| 77 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 78 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 79 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 80 |
msgstr "" |
| 81 |
"B<pthread_mutex_t >I<fastmutex>B< = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 82 |
"B<pthread_mutex_t >I<recmutex>B< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" |
| 83 |
"B<pthread_mutex_t >I<errchkmutex>B< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "" |
| 90 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 91 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 92 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 93 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 94 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 95 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 96 |
msgstr "" |
| 97 |
"B<int pthread_mutex_init(pthread_mutex_t *>I<mutex>B<,>\n" |
| 98 |
"B< const pthread_mutexattr_t *>I<mutexattr>B<);>\n" |
| 99 |
"B<int pthread_mutex_lock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 100 |
"B<int pthread_mutex_trylock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 101 |
"B<int pthread_mutex_unlock(pthread_mutex_t *>I<mutex>B<);>\n" |
| 102 |
"B<int pthread_mutex_destroy(pthread_mutex_t *>I<mutex>B<);>\n" |
| 103 |
|
| 104 |
#. type: SH |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "DESCRIPTION" |
| 109 |
msgstr "الوصف" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
msgid "" |
| 115 |
"A mutex is a MUTual EXclusion device, and is useful for protecting shared " |
| 116 |
"data structures from concurrent modifications, and implementing critical " |
| 117 |
"sections and monitors." |
| 118 |
msgstr "" |
| 119 |
"كائن الاستبعاد المتبادل هو أداة استبعاد متبادل، وهو مفيد لحماية هياكل " |
| 120 |
"البيانات المشتركة من التعديلات المتزامنة، وتنفيذ المقاطع الحرجة والمراقبين." |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "" |
| 126 |
"A mutex has two possible states: unlocked (not owned by any thread), and " |
| 127 |
"locked (owned by one thread). A mutex can never be owned by two different " |
| 128 |
"threads simultaneously. A thread attempting to lock a mutex that is already " |
| 129 |
"locked by another thread is suspended until the owning thread unlocks the " |
| 130 |
"mutex first." |
| 131 |
msgstr "" |
| 132 |
"لكائن الاستبعاد المتبادل حالتان محتملتان: غير مقفل (لا يملكه أي خيط)، ومقفل " |
| 133 |
"(يملكه خيط واحد). لا يمكن أبدًا أن يملك خيطان مختلفان كائن الاستبعاد المتبادل " |
| 134 |
"في وقت واحد. يُعلّق الخيط الذي يحاول قفل كائن استبعاد متبادل مقفل بالفعل " |
| 135 |
"بواسطة خيط آخر حتى يقوم الخيط المالك بفتح قفل كائن الاستبعاد المتبادل أولاً." |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 139 |
#: opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"B<pthread_mutex_init>() initializes the mutex object pointed to by I<mutex> " |
| 142 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 143 |
"I<mutexattr> is NULL, default attributes are used instead." |
| 144 |
msgstr "" |
| 145 |
"تُهيئ الدالة B<pthread_mutex_init>() كائن الاستبعاد المتبادل المشار إليه " |
| 146 |
"بواسطة I<mutex> وفقًا لسمات كائن الاستبعاد المتبادل المحددة في I<mutexattr>. " |
| 147 |
"إذا كان I<mutexattr> NULL، تُستخدم السمات المبدئية بدلاً من ذلك." |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 151 |
#: opensuse-tumbleweed |
| 152 |
msgid "" |
| 153 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 154 |
"I<mutex kind>, which is either \"fast\", \"recursive\", or \"error " |
| 155 |
"checking\". The kind of a mutex determines whether it can be locked again " |
| 156 |
"by a thread that already owns it. The default kind is \"fast\". See " |
| 157 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 158 |
msgstr "" |
| 159 |
"يدعم تطبيق LinuxThreads سمة واحدة فقط لكائن الاستبعاد المتبادل، وهي I<نوع " |
| 160 |
"كائن الاستبعاد المتبادل>، والتي تكون إما \"سريع\" أو \"استرجاعي\" أو \"فحص " |
| 161 |
"الأخطاء\". يحدد نوع كائن الاستبعاد المتبادل ما إذا كان يمكن قفله مرة أخرى " |
| 162 |
"بواسطة خيط يملكه بالفعل. النوع المبدئي هو \"سريع\". راجع " |
| 163 |
"B<pthread_mutexattr_init>(3) لمزيد من المعلومات حول سمات كائن الاستبعاد " |
| 164 |
"المتبادل." |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 168 |
#: opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"Variables of type I<pthread_mutex_t> can also be initialized statically, " |
| 171 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 172 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 173 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 174 |
msgstr "" |
| 175 |
"يمكن أيضًا تهيئة المتغيرات من النوع I<pthread_mutex_t> بشكل ثابت، باستخدام " |
| 176 |
"الثوابت B<PTHREAD_MUTEX_INITIALIZER> (لكائنات الاستبعاد المتبادل السريعة)، " |
| 177 |
"وB<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (لكائنات الاستبعاد المتبادل " |
| 178 |
"الاسترجاعية)، وB<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (لكائنات الاستبعاد " |
| 179 |
"المتبادل لفحص الأخطاء)." |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 183 |
#: opensuse-tumbleweed |
| 184 |
msgid "" |
| 185 |
"B<pthread_mutex_lock>() locks the given mutex. If the mutex is currently " |
| 186 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 187 |
"B<pthread_mutex_lock>() returns immediately. If the mutex is already " |
| 188 |
"locked by another thread, B<pthread_mutex_lock>() suspends the calling " |
| 189 |
"thread until the mutex is unlocked." |
| 190 |
msgstr "" |
| 191 |
"تقفل الدالة B<pthread_mutex_lock>() كائن الاستبعاد المتبادل المُعطى. إذا كان " |
| 192 |
"كائن الاستبعاد المتبادل غير مقفل حاليًا، يصبح مقفلاً ويملكه الخيط المستدعي، " |
| 193 |
"وتعود الدالة B<pthread_mutex_lock>() فورًا. إذا كان كائن الاستبعاد المتبادل " |
| 194 |
"مقفلاً بالفعل بواسطة خيط آخر، تُعلّق الدالة B<pthread_mutex_lock>() الخيط " |
| 195 |
"المستدعي حتى يُفتح قفل كائن الاستبعاد المتبادل." |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 199 |
#: opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 202 |
"B<pthread_mutex_lock>() depends on the kind of the mutex. If the mutex is " |
| 203 |
"of the \"fast\" kind, the calling thread is suspended until the mutex is " |
| 204 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 205 |
"mutex is of the \"error checking\" kind, B<pthread_mutex_lock>() returns " |
| 206 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 207 |
"\"recursive\" kind, B<pthread_mutex_lock>() succeeds and returns " |
| 208 |
"immediately, recording the number of times the calling thread has locked the " |
| 209 |
"mutex. An equal number of B<pthread_mutex_unlock>() operations must be " |
| 210 |
"performed before the mutex returns to the unlocked state." |
| 211 |
msgstr "" |
| 212 |
"إذا كان كائن الاستبعاد المتبادل مقفلاً بالفعل بواسطة الخيط المستدعي، يعتمد " |
| 213 |
"سلوك الدالة B<pthread_mutex_lock>() على نوع كائن الاستبعاد المتبادل. إذا كان " |
| 214 |
"كائن الاستبعاد المتبادل من النوع \"سريع\"، يُعلّق الخيط المستدعي حتى يُفتح قفل " |
| 215 |
"كائن الاستبعاد المتبادل، مما يتسبب فعليًا في توقف الخيط المستدعي تامًا. إذا " |
| 216 |
"كان كائن الاستبعاد المتبادل من النوع \"فحص الأخطاء\"، تعود الدالة " |
| 217 |
"B<pthread_mutex_lock>() فورًا برمز الخطأ B<EDEADLK>. إذا كان كائن الاستبعاد " |
| 218 |
"المتبادل من النوع \"استرجاعي\"، تنجح الدالة B<pthread_mutex_lock>() وتعود " |
| 219 |
"فورًا، مسجلة عدد المرات التي قام فيها الخيط المستدعي بقفل كائن الاستبعاد " |
| 220 |
"المتبادل. يجب تنفيذ عدد مساوٍ من عمليات B<pthread_mutex_unlock>() قبل أن يعود " |
| 221 |
"كائن الاستبعاد المتبادل إلى الحالة غير المقفلة." |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 225 |
#: opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"B<pthread_mutex_trylock>() behaves identically to B<pthread_mutex_lock>(), " |
| 228 |
"except that it does not block the calling thread if the mutex is already " |
| 229 |
"locked by another thread (or by the calling thread in the case of a \"fast\" " |
| 230 |
"mutex). Instead, B<pthread_mutex_trylock>() returns immediately with the " |
| 231 |
"error code B<EBUSY>." |
| 232 |
msgstr "" |
| 233 |
"تتصرف الدالة B<pthread_mutex_trylock>() بشكل مماثل للدالة " |
| 234 |
"B<pthread_mutex_lock>()، باستثناء أنها لا تحجب الخيط المستدعي إذا كان كائن " |
| 235 |
"الاستبعاد المتبادل مقفلاً بالفعل بواسطة خيط آخر (أو بواسطة الخيط المستدعي في " |
| 236 |
"حالة كائن الاستبعاد المتبادل \"السريع\"). بدلاً من ذلك، تعود الدالة " |
| 237 |
"B<pthread_mutex_trylock>() فورًا برمز الخطأ B<EBUSY>." |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 241 |
#: opensuse-tumbleweed |
| 242 |
msgid "" |
| 243 |
"B<pthread_mutex_unlock>() unlocks the given mutex. The mutex is assumed to " |
| 244 |
"be locked and owned by the calling thread on entrance to " |
| 245 |
"B<pthread_mutex_unlock>(). If the mutex is of the \"fast\" kind, " |
| 246 |
"B<pthread_mutex_unlock>() always returns it to the unlocked state. If it " |
| 247 |
"is of the \"recursive\" kind, it decrements the locking count of the mutex " |
| 248 |
"(number of B<pthread_mutex_lock>() operations performed on it by the " |
| 249 |
"calling thread), and only when this count reaches zero is the mutex actually " |
| 250 |
"unlocked." |
| 251 |
msgstr "" |
| 252 |
"تفتح الدالة B<pthread_mutex_unlock>() قفل كائن الاستبعاد المتبادل المُعطى. " |
| 253 |
"يُفترض أن كائن الاستبعاد المتبادل مقفل ويملكه الخيط المستدعي عند الدخول إلى " |
| 254 |
"الدالة B<pthread_mutex_unlock>(). إذا كان كائن الاستبعاد المتبادل من النوع " |
| 255 |
"\"سريع\"، تعيده الدالة B<pthread_mutex_unlock>() دائمًا إلى الحالة غير " |
| 256 |
"المقفلة. إذا كان من النوع \"استرجاعي\"، فإنها تُنقص عدد القفل لكائن الاستبعاد " |
| 257 |
"المتبادل (عدد عمليات B<pthread_mutex_lock>() التي تم تنفيذها عليه بواسطة " |
| 258 |
"الخيط المستدعي)، وفقط عندما يصل هذا العدد إلى الصفر يُفتح قفل كائن الاستبعاد " |
| 259 |
"المتبادل فعليًا." |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 263 |
#: opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"On \"error checking\" and \"recursive\" mutexes, B<pthread_mutex_unlock>() " |
| 266 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 267 |
"it was locked by the same thread that is now calling " |
| 268 |
"B<pthread_mutex_unlock>(). If these conditions are not met, an error code " |
| 269 |
"is returned and the mutex remains unchanged. \"Fast\" mutexes perform no " |
| 270 |
"such checks, thus allowing a locked mutex to be unlocked by a thread other " |
| 271 |
"than its owner. This is non-portable behavior and must not be relied upon." |
| 272 |
msgstr "" |
| 273 |
"في كائنات الاستبعاد المتبادل من نوع \"فحص الأخطاء\" و\"الاسترجاعي\"، تتحقق " |
| 274 |
"الدالة B<pthread_mutex_unlock>() فعليًا في وقت التشغيل من أن كائن الاستبعاد " |
| 275 |
"المتبادل مقفل عند الدخول، وأنه قد تم قفله بواسطة نفس الخيط الذي يستدعي الآن " |
| 276 |
"الدالة B<pthread_mutex_unlock>(). إذا لم يتم استيفاء هذه الشروط، يُعاد رمز " |
| 277 |
"خطأ ويبقى كائن الاستبعاد المتبادل دون تغيير. لا تقوم كائنات الاستبعاد " |
| 278 |
"المتبادل \"السريعة\" بإجراء مثل هذه الفحوصات، مما يسمح بفتح قفل كائن استبعاد " |
| 279 |
"متبادل مقفل بواسطة خيط غير مالكه. هذا سلوك غير محمول ويجب عدم الاعتماد عليه." |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 283 |
#: opensuse-tumbleweed |
| 284 |
msgid "" |
| 285 |
"B<pthread_mutex_destroy>() destroys a mutex object, freeing the resources " |
| 286 |
"it might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 287 |
"implementation, no resources are associated with mutex objects, thus " |
| 288 |
"B<pthread_mutex_destroy>() actually does nothing except checking that the " |
| 289 |
"mutex is unlocked." |
| 290 |
msgstr "" |
| 291 |
"تُدمر الدالة B<pthread_mutex_destroy>() كائن استبعاد متبادل، محررة الموارد " |
| 292 |
"التي قد يحملها. يجب أن يكون كائن الاستبعاد المتبادل غير مقفل عند الدخول. في " |
| 293 |
"تطبيق LinuxThreads، لا توجد موارد مرتبطة بكائنات الاستبعاد المتبادل، " |
| 294 |
"وبالتالي فإن الدالة B<pthread_mutex_destroy>() لا تفعل شيئًا فعليًا سوى التحقق " |
| 295 |
"من أن كائن الاستبعاد المتبادل غير مقفل." |
| 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 "CANCELLATION" |
| 302 |
msgstr "إلغاء" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 306 |
#: opensuse-tumbleweed |
| 307 |
msgid "" |
| 308 |
"None of the mutex functions is a cancelation point, not even " |
| 309 |
"B<pthread_mutex_lock>(), in spite of the fact that it can suspend a thread " |
| 310 |
"for arbitrary durations. This way, the status of mutexes at cancelation " |
| 311 |
"points is predictable, allowing cancelation handlers to unlock precisely " |
| 312 |
"those mutexes that need to be unlocked before the thread stops executing. " |
| 313 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 314 |
"for extended periods of time." |
| 315 |
msgstr "" |
| 316 |
"لا تُعد أي من دوال كائن الاستبعاد المتبادل نقطة إلغاء، ولا حتى الدالة " |
| 317 |
"B<pthread_mutex_lock>()، على الرغم من حقيقة أنها يمكن أن تعلق خيطًا لفترات " |
| 318 |
"زمنية عشوائية. بهذه الطريقة، تكون حالة كائنات الاستبعاد المتبادل في نقاط " |
| 319 |
"الإلغاء قابلة للتنبؤ، مما يسمح لمعالجات الإلغاء بفتح قفل تلك الكائنات التي " |
| 320 |
"تحتاج إلى فتح قفلها بدقة قبل أن يتوقف الخيط عن التنفيذ. وبالتالي، يجب ألا " |
| 321 |
"تحتفظ الخيوط التي تستخدم الإلغاء المؤجل بكائن استبعاد متبادل لفترات زمنية " |
| 322 |
"طويلة." |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "ASYNC-SIGNAL SAFETY" |
| 329 |
msgstr "سلامة الإشارة غير المتزامنة" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 333 |
#: opensuse-tumbleweed |
| 334 |
msgid "" |
| 335 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 336 |
"should not be called from a signal handler. In particular, calling " |
| 337 |
"B<pthread_mutex_lock>() or B<pthread_mutex_unlock>() from a signal handler " |
| 338 |
"may deadlock the calling thread." |
| 339 |
msgstr "" |
| 340 |
"دوال كائن الاستبعاد المتبادل ليست آمنة للإشارات غير المتزامنة. ما يعنيه هذا " |
| 341 |
"هو أنه لا ينبغي استدعاؤها من معالج إشارة. على وجه الخصوص، قد يتسبب استدعاء " |
| 342 |
"B<pthread_mutex_lock>() أو B<pthread_mutex_unlock>() من معالج إشارة في توقف " |
| 343 |
"الخيط المستدعي تامًا." |
| 344 |
|
| 345 |
#. type: SH |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, no-wrap |
| 349 |
msgid "RETURN VALUE" |
| 350 |
msgstr "قيمة الإرجاع" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 354 |
#: opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"B<pthread_mutex_init>() always returns 0. The other mutex functions return " |
| 357 |
"0 on success and a non-zero error code on error." |
| 358 |
msgstr "" |
| 359 |
"تعود الدالة B<pthread_mutex_init>() دائمًا بالقيمة 0. تعود دوال كائن " |
| 360 |
"الاستبعاد المتبادل الأخرى بالقيمة 0 عند النجاح ورمز خطأ غير صفري عند الخطأ." |
| 361 |
|
| 362 |
#. type: SH |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "ERRORS" |
| 367 |
msgstr "الأخطاء" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 371 |
#: opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"The B<pthread_mutex_lock>() function returns the following error code on " |
| 374 |
"error:" |
| 375 |
msgstr "تعود الدالة B<pthread_mutex_lock>() برمز الخطأ التالي عند الخطأ:" |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "B<EINVAL>" |
| 382 |
msgstr "B<EINVAL>" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "The mutex has not been properly initialized." |
| 388 |
msgstr "لم تتم تهيئة كائن الاستبعاد المتبادل بشكل صحيح." |
| 389 |
|
| 390 |
#. type: TP |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "B<EDEADLK>" |
| 395 |
msgstr "B<EDEADLK>" |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 399 |
#: opensuse-tumbleweed |
| 400 |
msgid "" |
| 401 |
"The mutex is already locked by the calling thread (\"error checking\" " |
| 402 |
"mutexes only)." |
| 403 |
msgstr "" |
| 404 |
"كائن الاستبعاد المتبادل مقفل بالفعل بواسطة الخيط المستدعي (كائنات الاستبعاد " |
| 405 |
"المتبادل من نوع \"فحص الأخطاء\" فقط)." |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 409 |
#: opensuse-tumbleweed |
| 410 |
msgid "" |
| 411 |
"The B<pthread_mutex_trylock>() function returns the following error codes " |
| 412 |
"on error:" |
| 413 |
msgstr "" |
| 414 |
"تُرجع الدالة B<pthread_mutex_trylock>() أكواد الخطأ التالية عند حدوث خطأ:" |
| 415 |
|
| 416 |
#. type: TP |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
#, no-wrap |
| 420 |
msgid "B<EBUSY>" |
| 421 |
msgstr "B<EBUSY>" |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "The mutex could not be acquired because it was currently locked." |
| 427 |
msgstr "تعذر الحصول على المِفصل لأنه كان مقفلاً حالياً." |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 431 |
#: opensuse-tumbleweed |
| 432 |
msgid "" |
| 433 |
"The B<pthread_mutex_unlock>() function returns the following error code on " |
| 434 |
"error:" |
| 435 |
msgstr "تُرجع الدالة B<pthread_mutex_unlock>() كود الخطأ التالي عند حدوث خطأ:" |
| 436 |
|
| 437 |
#. type: TP |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
#, no-wrap |
| 441 |
msgid "B<EPERM>" |
| 442 |
msgstr "B<EPERM>" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 446 |
#: opensuse-tumbleweed |
| 447 |
msgid "" |
| 448 |
"The calling thread does not own the mutex (\"error checking\" mutexes only)." |
| 449 |
msgstr "لا يملك الخيط المستدعي المِفصل (لمفاصل \"فحص الأخطاء\" فقط)." |
| 450 |
|
| 451 |
#. type: Plain text |
| 452 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 453 |
#: opensuse-tumbleweed |
| 454 |
msgid "" |
| 455 |
"The B<pthread_mutex_destroy>() function returns the following error code on " |
| 456 |
"error:" |
| 457 |
msgstr "تُرجع الدالة B<pthread_mutex_destroy>() كود الخطأ التالي عند حدوث خطأ:" |
| 458 |
|
| 459 |
#. type: Plain text |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
msgid "The mutex is currently locked." |
| 463 |
msgstr "المِفصل مقفل حالياً." |
| 464 |
|
| 465 |
#. type: SH |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
#, no-wrap |
| 469 |
msgid "SEE ALSO" |
| 470 |
msgstr "انظر أيضًا" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
msgid "" |
| 476 |
"B<pthread_mutexattr_init>(3), B<pthread_mutexattr_setkind_np>(3), " |
| 477 |
"B<pthread_cancel>(3)." |
| 478 |
msgstr "" |
| 479 |
"B<pthread_mutexattr_init>(3)، B<pthread_mutexattr_setkind_np>(3)، " |
| 480 |
"B<pthread_cancel>(3)." |
| 481 |
|
| 482 |
#. type: SH |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
#, no-wrap |
| 486 |
msgid "EXAMPLE" |
| 487 |
msgstr "مثال" |
| 488 |
|
| 489 |
#. type: Plain text |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
msgid "A shared global variable I<x> can be protected by a mutex as follows:" |
| 493 |
msgstr "يمكن حماية متغير عام مشترك I<x> بواسطة مِفصل كما يلي:" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "" |
| 500 |
"B<int x;\n" |
| 501 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 502 |
msgstr "" |
| 503 |
"B<int x;\n" |
| 504 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;>\n" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 508 |
#: opensuse-tumbleweed |
| 509 |
msgid "" |
| 510 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 511 |
"B<pthread_mutex_lock>() and B<pthread_mutex_unlock>() as follows:" |
| 512 |
msgstr "" |
| 513 |
"يجب وضع جميع الوصولات والتعديلات على I<x> بين استدعاءات " |
| 514 |
"B<pthread_mutex_lock>() و B<pthread_mutex_unlock>() كما يلي:" |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 519 |
#, no-wrap |
| 520 |
msgid "" |
| 521 |
"B<pthread_mutex_lock(&mut);\n" |
| 522 |
"/* operate on x */\n" |
| 523 |
"pthread_mutex_unlock(&mut);>\n" |
| 524 |
msgstr "" |
| 525 |
"B<pthread_mutex_lock(&mut);\n" |
| 526 |
"/* operate on x */\n" |
| 527 |
"pthread_mutex_unlock(&mut);>\n" |
| 528 |
|
| 529 |
#. type: TH |
| 530 |
#: debian-trixie fedora-44 fedora-rawhide |
| 531 |
#, no-wrap |
| 532 |
msgid "2024-06-16" |
| 533 |
msgstr "16 يونيو 2024" |
| 534 |
|
| 535 |
#. type: TH |
| 536 |
#: debian-trixie |
| 537 |
#, no-wrap |
| 538 |
msgid "Linux man-pages 6.9.1" |
| 539 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: debian-trixie fedora-44 fedora-rawhide |
| 543 |
msgid "" |
| 544 |
"B<pthread_mutex_init> initializes the mutex object pointed to by I<mutex> " |
| 545 |
"according to the mutex attributes specified in I<mutexattr>. If " |
| 546 |
"I<mutexattr> is B<NULL>, default attributes are used instead." |
| 547 |
msgstr "" |
| 548 |
"B<pthread_mutex_init> يُهيئ كائن المِفصل المشار إليه بواسطة I<mutex> وفقاً " |
| 549 |
"لسمات المِفصل المحددة في I<mutexattr>. إذا كان I<mutexattr> هو B<NULL>، " |
| 550 |
"تُستخدم السمات المبدئية بدلاً من ذلك." |
| 551 |
|
| 552 |
#. type: Plain text |
| 553 |
#: debian-trixie fedora-44 fedora-rawhide |
| 554 |
msgid "" |
| 555 |
"The LinuxThreads implementation supports only one mutex attributes, the " |
| 556 |
"I<mutex kind>, which is either ``fast'', ``recursive'', or ``error " |
| 557 |
"checking''. The kind of a mutex determines whether it can be locked again " |
| 558 |
"by a thread that already owns it. The default kind is ``fast''. See " |
| 559 |
"B<pthread_mutexattr_init>(3) for more information on mutex attributes." |
| 560 |
msgstr "" |
| 561 |
"يدعم تطبيق LinuxThreads سمة مِفصل واحدة فقط، وهي I<نوع المِفصل>، والتي تكون " |
| 562 |
"إما \"سريع\" أو \"تكراري\" أو \"فحص الأخطاء\". يحدد نوع المِفصل ما إذا كان " |
| 563 |
"يمكن قفله مرة أخرى بواسطة خيط يملكه بالفعل. النوع المبدئي هو \"سريع\". " |
| 564 |
"راجع B<pthread_mutexattr_init>(3) لمزيد من المعلومات حول سمات المِفصل." |
| 565 |
|
| 566 |
#. type: Plain text |
| 567 |
#: debian-trixie fedora-44 fedora-rawhide |
| 568 |
msgid "" |
| 569 |
"Variables of type B<pthread_mutex_t> can also be initialized statically, " |
| 570 |
"using the constants B<PTHREAD_MUTEX_INITIALIZER> (for fast mutexes), " |
| 571 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (for recursive mutexes), and " |
| 572 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (for error checking mutexes)." |
| 573 |
msgstr "" |
| 574 |
"يمكن أيضاً تهيئة متغيرات من النوع B<pthread_mutex_t> بشكل ثابت، باستخدام " |
| 575 |
"الثوابت B<PTHREAD_MUTEX_INITIALIZER> (للمفاصل السريعة)، و " |
| 576 |
"B<PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP> (للمفاصل التكرارية)، و " |
| 577 |
"B<PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP> (لمفاصل فحص الأخطاء)." |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: debian-trixie fedora-44 fedora-rawhide |
| 581 |
msgid "" |
| 582 |
"B<pthread_mutex_lock> locks the given mutex. If the mutex is currently " |
| 583 |
"unlocked, it becomes locked and owned by the calling thread, and " |
| 584 |
"B<pthread_mutex_lock> returns immediately. If the mutex is already locked " |
| 585 |
"by another thread, B<pthread_mutex_lock> suspends the calling thread until " |
| 586 |
"the mutex is unlocked." |
| 587 |
msgstr "" |
| 588 |
"B<pthread_mutex_lock> يقفل المِفصل المُعطى. إذا كان المِفصل غير مقفل حالياً، " |
| 589 |
"يصبح مقفلاً ويملكه الخيط المستدعي، وتُرجع B<pthread_mutex_lock> فوراً. إذا كان " |
| 590 |
"المِفصل مقفلاً بالفعل بواسطة خيط آخر، تُعلق B<pthread_mutex_lock> الخيط " |
| 591 |
"المستدعي حتى يُقفل المِفصل." |
| 592 |
|
| 593 |
#. type: Plain text |
| 594 |
#: debian-trixie fedora-44 fedora-rawhide |
| 595 |
msgid "" |
| 596 |
"If the mutex is already locked by the calling thread, the behavior of " |
| 597 |
"B<pthread_mutex_lock> depends on the kind of the mutex. If the mutex is of " |
| 598 |
"the ``fast'' kind, the calling thread is suspended until the mutex is " |
| 599 |
"unlocked, thus effectively causing the calling thread to deadlock. If the " |
| 600 |
"mutex is of the ``error checking'' kind, B<pthread_mutex_lock> returns " |
| 601 |
"immediately with the error code B<EDEADLK>. If the mutex is of the " |
| 602 |
"``recursive'' kind, B<pthread_mutex_lock> succeeds and returns immediately, " |
| 603 |
"recording the number of times the calling thread has locked the mutex. An " |
| 604 |
"equal number of B<pthread_mutex_unlock> operations must be performed before " |
| 605 |
"the mutex returns to the unlocked state." |
| 606 |
msgstr "" |
| 607 |
"إذا كان المِفصل مقفلاً بالفعل بواسطة الخيط المستدعي، يعتمد سلوك " |
| 608 |
"B<pthread_mutex_lock> على نوع المِفصل. إذا كان المِفصل من النوع \"السريع\"، " |
| 609 |
"يُعلق الخيط المستدعي حتى يُقفل المِفصل، مما يتسبب فعلياً في توقف الخيط " |
| 610 |
"المستدعي. إذا كان المِفصل من النوع \"فحص الأخطاء\"، تُرجع " |
| 611 |
"B<pthread_mutex_lock> فوراً مع كود الخطأ B<EDEADLK>. إذا كان المِفصل من النوع " |
| 612 |
"\"التكراري\"، تنجح B<pthread_mutex_lock> وتُرجع فوراً، مسجلة عدد المرات التي " |
| 613 |
"قفل فيها الخيط المستدعي المِفصل. يجب تنفيذ عدد مساوٍ من عمليات " |
| 614 |
"B<pthread_mutex_unlock> قبل أن يعود المِفصل إلى الحالة غير المقفلة." |
| 615 |
|
| 616 |
#. type: Plain text |
| 617 |
#: debian-trixie fedora-44 fedora-rawhide |
| 618 |
msgid "" |
| 619 |
"B<pthread_mutex_trylock> behaves identically to B<pthread_mutex_lock>, " |
| 620 |
"except that it does not block the calling thread if the mutex is already " |
| 621 |
"locked by another thread (or by the calling thread in the case of a ``fast'' " |
| 622 |
"mutex). Instead, B<pthread_mutex_trylock> returns immediately with the " |
| 623 |
"error code B<EBUSY>." |
| 624 |
msgstr "" |
| 625 |
"يتصرف B<pthread_mutex_trylock> بشكل مماثل لـ B<pthread_mutex_lock>، باستثناء " |
| 626 |
"أنه لا يحظر الخيط المستدعي إذا كان المِفصل مقفلاً بالفعل بواسطة خيط آخر (أو " |
| 627 |
"بواسطة الخيط المستدعي في حالة المِفصل \"السريع\"). بدلاً من ذلك، تُرجع " |
| 628 |
"B<pthread_mutex_trylock> فوراً مع كود الخطأ B<EBUSY>." |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: debian-trixie fedora-44 fedora-rawhide |
| 632 |
msgid "" |
| 633 |
"B<pthread_mutex_unlock> unlocks the given mutex. The mutex is assumed to be " |
| 634 |
"locked and owned by the calling thread on entrance to " |
| 635 |
"B<pthread_mutex_unlock>. If the mutex is of the ``fast'' kind, " |
| 636 |
"B<pthread_mutex_unlock> always returns it to the unlocked state. If it is " |
| 637 |
"of the ``recursive'' kind, it decrements the locking count of the mutex " |
| 638 |
"(number of B<pthread_mutex_lock> operations performed on it by the calling " |
| 639 |
"thread), and only when this count reaches zero is the mutex actually " |
| 640 |
"unlocked." |
| 641 |
msgstr "" |
| 642 |
"B<pthread_mutex_unlock> يُقفل المِفصل المُعطى. يُفترض أن المِفصل مقفل ويملكه " |
| 643 |
"الخيط المستدعي عند الدخول إلى B<pthread_mutex_unlock>. إذا كان المِفصل من " |
| 644 |
"النوع \"السريع\"، يُعيده B<pthread_mutex_unlock> دائماً إلى الحالة غير " |
| 645 |
"المقفلة. إذا كان من النوع \"التكراري\"، يُقلل عدد قفل المِفصل (عدد عمليات " |
| 646 |
"B<pthread_mutex_lock> التي نفذها الخيط المستدعي عليه)، وفقط عندما يصل هذا " |
| 647 |
"العدد إلى الصفر يُقفل المِفصل فعلياً." |
| 648 |
|
| 649 |
#. type: Plain text |
| 650 |
#: debian-trixie fedora-44 fedora-rawhide |
| 651 |
msgid "" |
| 652 |
"On ``error checking'' and ``recursive'' mutexes, B<pthread_mutex_unlock> " |
| 653 |
"actually checks at run-time that the mutex is locked on entrance, and that " |
| 654 |
"it was locked by the same thread that is now calling " |
| 655 |
"B<pthread_mutex_unlock>. If these conditions are not met, an error code is " |
| 656 |
"returned and the mutex remains unchanged. ``Fast'' mutexes perform no such " |
| 657 |
"checks, thus allowing a locked mutex to be unlocked by a thread other than " |
| 658 |
"its owner. This is non-portable behavior and must not be relied upon." |
| 659 |
msgstr "" |
| 660 |
"على مفاصل \"فحص الأخطاء\" و\"التكرارية\"، يتحقق B<pthread_mutex_unlock> " |
| 661 |
"فعلياً في وقت التشغيل من أن المِفصل مقفل عند الدخول، وأنه قُفل بواسطة نفس الخيط " |
| 662 |
"الذي يستدعي الآن B<pthread_mutex_unlock>. إذا لم تتحقق هذه الشروط، يُرجع كود " |
| 663 |
"خطأ ويبقى المِفصل دون تغيير. لا تقوم المفاصل \"السريعة\" بمثل هذه الفحوصات، " |
| 664 |
"مما يسمح بإقفال مِفصل مقفل بواسطة خيط غير مالكه. هذا سلوك غير محمول ويجب عدم " |
| 665 |
"الاعتماد عليه." |
| 666 |
|
| 667 |
#. type: Plain text |
| 668 |
#: debian-trixie fedora-44 fedora-rawhide |
| 669 |
msgid "" |
| 670 |
"B<pthread_mutex_destroy> destroys a mutex object, freeing the resources it " |
| 671 |
"might hold. The mutex must be unlocked on entrance. In the LinuxThreads " |
| 672 |
"implementation, no resources are associated with mutex objects, thus " |
| 673 |
"B<pthread_mutex_destroy> actually does nothing except checking that the " |
| 674 |
"mutex is unlocked." |
| 675 |
msgstr "" |
| 676 |
"B<pthread_mutex_destroy> يُدمر كائن المِفصل، محرراً الموارد التي قد يحملها. " |
| 677 |
"يجب أن يكون المِفصل غير مقفل عند الدخول. في تطبيق LinuxThreads، لا توجد " |
| 678 |
"موارد مرتبطة بكائنات المِفصل، وبالتالي لا يفعل B<pthread_mutex_destroy> شيئاً " |
| 679 |
"في الواقع سوى التحقق من أن المِفصل غير مقفل." |
| 680 |
|
| 681 |
#. type: Plain text |
| 682 |
#: debian-trixie fedora-44 fedora-rawhide |
| 683 |
msgid "" |
| 684 |
"None of the mutex functions is a cancelation point, not even " |
| 685 |
"B<pthread_mutex_lock>, in spite of the fact that it can suspend a thread for " |
| 686 |
"arbitrary durations. This way, the status of mutexes at cancelation points " |
| 687 |
"is predictable, allowing cancelation handlers to unlock precisely those " |
| 688 |
"mutexes that need to be unlocked before the thread stops executing. " |
| 689 |
"Consequently, threads using deferred cancelation should never hold a mutex " |
| 690 |
"for extended periods of time." |
| 691 |
msgstr "" |
| 692 |
"لا تُعد أي من دوال المزامنة (mutex) نقطة إلغاء، ولا حتى " |
| 693 |
"B<pthread_mutex_lock>، رغم قدرتها على تعليق خيط لفترات زمنية عشوائية. بهذه " |
| 694 |
"الطريقة، تكون حالة المزامنات عند نقاط الإلغاء قابلة للتوقع، مما يسمح " |
| 695 |
"لمعالجات الإلغاء بفتح قفل تلك المزامنات التي تحتاج إلى فتح قفلها بدقة قبل " |
| 696 |
"توقف الخيط عن التنفيذ. وبالتالي، يجب على الخيوط التي تستخدم الإلغاء المؤجل " |
| 697 |
"ألا تمسك بمزامنة لفترات زمنية طويلة." |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: debian-trixie fedora-44 fedora-rawhide |
| 701 |
msgid "" |
| 702 |
"The mutex functions are not async-signal safe. What this means is that they " |
| 703 |
"should not be called from a signal handler. In particular, calling " |
| 704 |
"B<pthread_mutex_lock> or B<pthread_mutex_unlock> from a signal handler may " |
| 705 |
"deadlock the calling thread." |
| 706 |
msgstr "" |
| 707 |
"دوال المزامنة ليست آمنة للإشارات غير المتزامنة. معنى هذا أنه لا ينبغي " |
| 708 |
"استدعاؤها من معالج إشارة. على وجه الخصوص، قد يؤدي استدعاء " |
| 709 |
"B<pthread_mutex_lock> أو B<pthread_mutex_unlock> من معالج إشارة إلى تعطيل " |
| 710 |
"الخيط المستدعي (deadlock)." |
| 711 |
|
| 712 |
#. type: Plain text |
| 713 |
#: debian-trixie fedora-44 fedora-rawhide |
| 714 |
msgid "" |
| 715 |
"B<pthread_mutex_init> always returns 0. The other mutex functions return 0 " |
| 716 |
"on success and a non-zero error code on error." |
| 717 |
msgstr "" |
| 718 |
"تُرجع B<pthread_mutex_init> دائمًا 0. تُرجع دوال المزامنة الأخرى 0 عند النجاح " |
| 719 |
"ورمز خطأ غير صفري عند الخطأ." |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: debian-trixie fedora-44 fedora-rawhide |
| 723 |
msgid "" |
| 724 |
"The B<pthread_mutex_lock> function returns the following error code on error:" |
| 725 |
msgstr "تُرجع الدالة B<pthread_mutex_lock> رمز الخطأ التالي عند الخطأ:" |
| 726 |
|
| 727 |
#. type: Plain text |
| 728 |
#: debian-trixie fedora-44 fedora-rawhide |
| 729 |
msgid "" |
| 730 |
"The mutex is already locked by the calling thread (``error checking'' " |
| 731 |
"mutexes only)." |
| 732 |
msgstr "" |
| 733 |
"المزامنة مقفلة بالفعل بواسطة الخيط المستدعي (لمزامنات \"فحص الأخطاء\" فقط)." |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: debian-trixie fedora-44 fedora-rawhide |
| 737 |
msgid "" |
| 738 |
"The B<pthread_mutex_trylock> function returns the following error codes on " |
| 739 |
"error:" |
| 740 |
msgstr "تُرجع الدالة B<pthread_mutex_trylock> رموز الخطأ التالية عند الخطأ:" |
| 741 |
|
| 742 |
#. type: Plain text |
| 743 |
#: debian-trixie fedora-44 fedora-rawhide |
| 744 |
msgid "" |
| 745 |
"The B<pthread_mutex_unlock> function returns the following error code on " |
| 746 |
"error:" |
| 747 |
msgstr "تُرجع الدالة B<pthread_mutex_unlock> رمز الخطأ التالي عند الخطأ:" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: debian-trixie fedora-44 fedora-rawhide |
| 751 |
msgid "" |
| 752 |
"The calling thread does not own the mutex (``error checking'' mutexes only)." |
| 753 |
msgstr "الخيط المستدعي لا يملك المزامنة (لمزامنات \"فحص الأخطاء\" فقط)." |
| 754 |
|
| 755 |
#. type: Plain text |
| 756 |
#: debian-trixie fedora-44 fedora-rawhide |
| 757 |
msgid "" |
| 758 |
"The B<pthread_mutex_destroy> function returns the following error code on " |
| 759 |
"error:" |
| 760 |
msgstr "تُرجع الدالة B<pthread_mutex_destroy> رمز الخطأ التالي عند الخطأ:" |
| 761 |
|
| 762 |
#. type: Plain text |
| 763 |
#: debian-trixie fedora-44 fedora-rawhide |
| 764 |
msgid "" |
| 765 |
"All accesses and modifications to I<x> should be bracketed by calls to " |
| 766 |
"B<pthread_mutex_lock> and B<pthread_mutex_unlock> as follows:" |
| 767 |
msgstr "" |
| 768 |
"يجب وضع جميع الوصولات والتعديلات على I<x> بين استدعاءات " |
| 769 |
"B<pthread_mutex_lock> و B<pthread_mutex_unlock> كما يلي:" |
| 770 |
|
| 771 |
#. type: TH |
| 772 |
#: fedora-44 fedora-rawhide |
| 773 |
#, no-wrap |
| 774 |
msgid "Linux man-pages 6.13" |
| 775 |
msgstr "صفحات دليل لينكس 6.13" |
| 776 |
|
| 777 |
#. type: TH |
| 778 |
#: mageia-cauldron |
| 779 |
#, no-wrap |
| 780 |
msgid "Linux man-pages 6.17" |
| 781 |
msgstr "صفحات دليل لينكس 6.17" |
| 782 |
|
| 783 |
#. type: TH |
| 784 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
#, no-wrap |
| 786 |
msgid "Linux man-pages (unreleased)" |
| 787 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |