| 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:01+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_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 مارس 2026" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "صفحات دليل لينكس 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 "الاسم" |
| 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 - عمليات على " |
| 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 "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 "الوصف" |
| 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 |
"الشرط (اختصار \"متغير الشرط\") هو أداة تزامن تسمح للخيوط بتعليق التنفيذ " |
| 121 |
"والتخلي عن المعالجات حتى يُستوفى بعض المسند على البيانات المشتركة. العمليات " |
| 122 |
"الأساسية على الشروط هي: الإشارة إلى الشرط (عندما يصبح المسند صحيحًا)، " |
| 123 |
"والانتظار للشرط، مع تعليق تنفيذ الخيط حتى يشير خيط آخر إلى الشرط." |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "" |
| 129 |
"A condition variable must always be associated with a mutex, to avoid the " |
| 130 |
"race condition where a thread prepares to wait on a condition variable and " |
| 131 |
"another thread signals the condition just before the first thread actually " |
| 132 |
"waits on it." |
| 133 |
msgstr "" |
| 134 |
"يجب دائمًا ربط متغير الشرط مع كائن المزامنة (mutex)، لتجنب حالة السباق حيث " |
| 135 |
"يُحضر خيط للانتظار على متغير شرط ويشير خيط آخر إلى الشرط قبل أن ينتظر الخيط " |
| 136 |
"الأول عليه فعليًا." |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 140 |
#: opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"B<pthread_cond_init>() initializes the condition variable I<cond>, using " |
| 143 |
"the condition attributes specified in I<cond_attr>, or default attributes if " |
| 144 |
"I<cond_attr> is NULL. The LinuxThreads implementation supports no " |
| 145 |
"attributes for conditions, hence the I<cond_attr> parameter is actually " |
| 146 |
"ignored." |
| 147 |
msgstr "" |
| 148 |
"تهيئ الدالة B<pthread_cond_init>() متغير الشرط I<cond>، باستخدام سمات الشرط " |
| 149 |
"المحددة في I<cond_attr>، أو السمات المبدئية إذا كان I<cond_attr> فارغًا " |
| 150 |
"(NULL). لا يدعم تطبيق LinuxThreads أي سمات للشروط، وبالتالي يُتجاهل معامل " |
| 151 |
"I<cond_attr> فعليًا." |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 155 |
#: opensuse-tumbleweed |
| 156 |
msgid "" |
| 157 |
"Variables of type I<pthread_cond_t> can also be initialized statically, " |
| 158 |
"using the constant B<PTHREAD_COND_INITIALIZER>." |
| 159 |
msgstr "" |
| 160 |
"يمكن أيضًا تهيئة متغيرات من النوع I<pthread_cond_t> بشكل ثابت، باستخدام " |
| 161 |
"الثابت B<PTHREAD_COND_INITIALIZER>." |
| 162 |
|
| 163 |
#. type: Plain text |
| 164 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 165 |
#: opensuse-tumbleweed |
| 166 |
msgid "" |
| 167 |
"B<pthread_cond_signal>() restarts one of the threads that are waiting on " |
| 168 |
"the condition variable I<cond>. If no threads are waiting on I<cond>, " |
| 169 |
"nothing happens. If several threads are waiting on I<cond>, exactly one is " |
| 170 |
"restarted, but it is not specified which." |
| 171 |
msgstr "" |
| 172 |
"تعيد الدالة B<pthread_cond_signal>() تشغيل أحد الخيوط المنتظرة على متغير " |
| 173 |
"الشرط I<cond>. إذا لم تكن أي خيوط تنتظر على I<cond>، لا يحدث شيء. إذا كانت " |
| 174 |
"عدة خيوط تنتظر على I<cond>، يُعاد تشغيل واحد منها بالضبط، ولكن لا يُحدد أي " |
| 175 |
"منها." |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 179 |
#: opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"B<pthread_cond_broadcast>() restarts all the threads that are waiting on " |
| 182 |
"the condition variable I<cond>. Nothing happens if no threads are waiting " |
| 183 |
"on I<cond>." |
| 184 |
msgstr "" |
| 185 |
"تعيد الدالة B<pthread_cond_broadcast>() تشغيل جميع الخيوط المنتظرة على متغير " |
| 186 |
"الشرط I<cond>. لا يحدث شيء إذا لم تكن أي خيوط تنتظر على I<cond>." |
| 187 |
|
| 188 |
#. type: Plain text |
| 189 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per " |
| 192 |
"B<pthread_mutex_unlock>()) and waits for the condition variable I<cond> to " |
| 193 |
"be signaled. The thread execution is suspended and does not consume any CPU " |
| 194 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 195 |
"by the calling thread on entrance to B<pthread_cond_wait>(). Before " |
| 196 |
"returning to the calling thread, B<pthread_cond_wait>() re-acquires " |
| 197 |
"I<mutex> (as per B<pthread_mutex_lock>())." |
| 198 |
msgstr "" |
| 199 |
"تفتح الدالة B<pthread_cond_wait>() كائن المزامنة I<mutex> بشكل ذري (وفقًا لـ " |
| 200 |
"B<pthread_mutex_unlock>()) وتنتظر الإشارة إلى متغير الشرط I<cond>. يُعلق " |
| 201 |
"تنفيذ الخيط ولا يستهلك أي وقت من وحدة المعالجة المركزية حتى يُشار إلى متغير " |
| 202 |
"الشرط. يجب أن يكون I<mutex> مقفلاً بواسطة الخيط المستدعي عند الدخول إلى " |
| 203 |
"B<pthread_cond_wait>(). قبل العودة إلى الخيط المستدعي، تستعيد " |
| 204 |
"B<pthread_cond_wait>() I<mutex> (وفقًا لـ B<pthread_mutex_lock>())." |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 208 |
#: opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"Unlocking the mutex and suspending on the condition variable is done " |
| 211 |
"atomically. Thus, if all threads always acquire the mutex before signaling " |
| 212 |
"the condition, this guarantees that the condition cannot be signaled (and " |
| 213 |
"thus ignored) between the time a thread locks the mutex and the time it " |
| 214 |
"waits on the condition variable. See CAVEATS below." |
| 215 |
msgstr "" |
| 216 |
"يتم فتح كائن المزامنة والتعليق على متغير الشرط بشكل ذري. وبالتالي، إذا حصلت " |
| 217 |
"جميع الخيوط دائمًا على كائن المزامنة قبل الإشارة إلى الشرط، فهذا يضمن عدم " |
| 218 |
"إمكانية الإشارة إلى الشرط (وبالتالي تجاهله) بين الوقت الذي يقفل فيه الخيط " |
| 219 |
"كائن المزامنة والوقت الذي ينتظر فيه على متغير الشرط. انظر التحذيرات أدناه." |
| 220 |
|
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 223 |
#: opensuse-tumbleweed |
| 224 |
msgid "" |
| 225 |
"B<pthread_cond_timedwait>() atomically unlocks I<mutex> and waits on " |
| 226 |
"I<cond>, as B<pthread_cond_wait>() does, but it also bounds the duration of " |
| 227 |
"the wait. If I<cond> has not been signaled within the amount of time " |
| 228 |
"specified by I<abstime>, the mutex I<mutex> is re-acquired and " |
| 229 |
"B<pthread_cond_timedwait>() returns the error B<ETIMEDOUT>. The I<abstime> " |
| 230 |
"parameter specifies an absolute time, with the same origin as B<time>(2) " |
| 231 |
"and B<gettimeofday>(2): an I<abstime> of 0 corresponds to 00:00:00 GMT, " |
| 232 |
"January 1, 1970." |
| 233 |
msgstr "" |
| 234 |
"تفتح الدالة B<pthread_cond_timedwait>() كائن المزامنة I<mutex> بشكل ذري " |
| 235 |
"وتنتظر على I<cond>، كما تفعل B<pthread_cond_wait>()، ولكنها أيضًا تحدد مدة " |
| 236 |
"الانتظار. إذا لم يُشر إلى I<cond> خلال المدة الزمنية المحددة بواسطة " |
| 237 |
"I<abstime>، يُعاد الحصول على كائن المزامنة I<mutex> وتُرجع " |
| 238 |
"B<pthread_cond_timedwait>() الخطأ B<ETIMEDOUT>. يحدد معامل I<abstime> وقتًا " |
| 239 |
"مطلقًا، بنفس أصل B<time>(2) و B<gettimeofday>(2): I<abstime> بقيمة 0 يتوافق " |
| 240 |
"مع 00:00:00 بتوقيت غرينتش، 1 يناير 1970." |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 244 |
#: opensuse-tumbleweed |
| 245 |
msgid "" |
| 246 |
"B<pthread_cond_destroy>() destroys a condition variable, freeing the " |
| 247 |
"resources it might hold. No threads must be waiting on the condition " |
| 248 |
"variable on entrance to B<pthread_cond_destroy>(). In the LinuxThreads " |
| 249 |
"implementation, no resources are associated with condition variables, thus " |
| 250 |
"B<pthread_cond_destroy>() actually does nothing except checking that the " |
| 251 |
"condition has no waiting threads." |
| 252 |
msgstr "" |
| 253 |
"تدمر الدالة B<pthread_cond_destroy>() متغير شرط، محررة الموارد التي قد " |
| 254 |
"يحملها. يجب ألا تكون أي خيوط تنتظر على متغير الشرط عند الدخول إلى " |
| 255 |
"B<pthread_cond_destroy>(). في تطبيق LinuxThreads، لا تُربط أي موارد بمتغيرات " |
| 256 |
"الشرط، وبالتالي لا تفعل B<pthread_cond_destroy>() شيئًا فعليًا سوى التحقق من " |
| 257 |
"عدم وجود خيوط منتظرة على الشرط." |
| 258 |
|
| 259 |
#. type: SH |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "CANCELLATION" |
| 264 |
msgstr "إلغاء" |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 268 |
#: opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"B<pthread_cond_wait>() and B<pthread_cond_timedwait>() are cancelation " |
| 271 |
"points. If a thread is cancelled while suspended in one of these functions, " |
| 272 |
"the thread immediately resumes execution, then locks again the I<mutex> " |
| 273 |
"argument to B<pthread_cond_wait>() and B<pthread_cond_timedwait>(), and " |
| 274 |
"finally executes the cancelation. Consequently, cleanup handlers are " |
| 275 |
"assured that I<mutex> is locked when they are called." |
| 276 |
msgstr "" |
| 277 |
"الدالتان B<pthread_cond_wait>() و B<pthread_cond_timedwait>() هما نقطتا " |
| 278 |
"إلغاء. إذا أُلغي خيط أثناء تعليقه في إحدى هاتين الدالتين، يستأنف الخيط " |
| 279 |
"التنفيذ فورًا، ثم يقفل مرة أخرى وسيط I<mutex> لـ B<pthread_cond_wait>() و " |
| 280 |
"B<pthread_cond_timedwait>()، وأخيرًا ينفذ الإلغاء. وبالتالي، يُضمن لمعالجات " |
| 281 |
"التنظيف أن I<mutex> مقفل عند استدعائها." |
| 282 |
|
| 283 |
#. type: SH |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
#, no-wrap |
| 287 |
msgid "ASYNC-SIGNAL SAFETY" |
| 288 |
msgstr "سلامة الإشارة غير المتزامنة" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 292 |
#: opensuse-tumbleweed |
| 293 |
msgid "" |
| 294 |
"The condition functions are not async-signal safe, and should not be called " |
| 295 |
"from a signal handler. In particular, calling B<pthread_cond_signal>() or " |
| 296 |
"B<pthread_cond_broadcast>() from a signal handler may deadlock the calling " |
| 297 |
"thread." |
| 298 |
msgstr "" |
| 299 |
"دوال الشرط ليست آمنة للإشارات غير المتزامنة، ولا ينبغي استدعاؤها من معالج " |
| 300 |
"إشارة. على وجه الخصوص، قد يؤدي استدعاء B<pthread_cond_signal>() أو " |
| 301 |
"B<pthread_cond_broadcast>() من معالج إشارة إلى توقف الخيط المستدعي " |
| 302 |
"(deadlock)." |
| 303 |
|
| 304 |
#. type: SH |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "RETURN VALUE" |
| 309 |
msgstr "قيمة الإرجاع" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
msgid "" |
| 315 |
"All condition variable functions return 0 on success and a non-zero error " |
| 316 |
"code on error." |
| 317 |
msgstr "ترجع جميع دوال متغير الشرط 0 عند النجاح ورمز خطأ غير صفري عند الخطأ." |
| 318 |
|
| 319 |
#. type: SH |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid "ERRORS" |
| 324 |
msgstr "الأخطاء" |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 328 |
#: opensuse-tumbleweed |
| 329 |
msgid "" |
| 330 |
"B<pthread_cond_init>(), B<pthread_cond_signal>(), " |
| 331 |
"B<pthread_cond_broadcast>(), and B<pthread_cond_wait>() never return an " |
| 332 |
"error code." |
| 333 |
msgstr "" |
| 334 |
"لا ترجع الدوال B<pthread_cond_init>() و B<pthread_cond_signal>() و " |
| 335 |
"B<pthread_cond_broadcast>() و B<pthread_cond_wait>() أي رمز خطأ أبدًا." |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 339 |
#: opensuse-tumbleweed |
| 340 |
msgid "" |
| 341 |
"The B<pthread_cond_timedwait>() function returns the following error codes " |
| 342 |
"on error:" |
| 343 |
msgstr "ترجع الدالة B<pthread_cond_timedwait>() رموز الخطأ التالية عند الخطأ:" |
| 344 |
|
| 345 |
#. type: TP |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, no-wrap |
| 349 |
msgid "B<ETIMEDOUT>" |
| 350 |
msgstr "B<ETIMEDOUT>" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 354 |
#: opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"The condition variable was not signaled until the timeout specified by " |
| 357 |
"I<abstime .>" |
| 358 |
msgstr "لم يُشر إلى متغير الشرط حتى المهلة المحددة بواسطة I<abstime>." |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 362 |
#: opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"The B<pthread_cond_destroy>() function returns the following error code on " |
| 365 |
"error:" |
| 366 |
msgstr "ترجع الدالة B<pthread_cond_destroy>() رمز الخطأ التالي عند الخطأ:" |
| 367 |
|
| 368 |
#. type: TP |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "B<EBUSY>" |
| 373 |
msgstr "B<EBUSY>" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 377 |
#: opensuse-tumbleweed |
| 378 |
msgid "Some threads are currently waiting on I<cond .>" |
| 379 |
msgstr "بعض الخيوط تنتظر حالياً على I<cond>." |
| 380 |
|
| 381 |
#. type: SH |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "SEE ALSO" |
| 386 |
msgstr "انظر أيضًا" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "" |
| 392 |
"B<pthread_condattr_init>(3), B<pthread_mutex_lock>(3), " |
| 393 |
"B<pthread_mutex_unlock>(3), B<gettimeofday>(2), B<nanosleep>(2)." |
| 394 |
msgstr "" |
| 395 |
"B<pthread_condattr_init>(3)، B<pthread_mutex_lock>(3)، " |
| 396 |
"B<pthread_mutex_unlock>(3)، B<gettimeofday>(2)، B<nanosleep>(2)." |
| 397 |
|
| 398 |
#. type: SH |
| 399 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 400 |
#: opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "CAVEATS" |
| 403 |
msgstr "تحذيرات" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 407 |
#: opensuse-tumbleweed |
| 408 |
msgid "" |
| 409 |
"The implementation of the provided functions until glibc 2.25 used an " |
| 410 |
"internal data lock. This lock did not support priority-inheritance and was " |
| 411 |
"subject to unbounded priority inversion, visible on a real-time system." |
| 412 |
msgstr "" |
| 413 |
"استخدم تنفيذ الدوال المقدمة حتى glibc 2.25 قفلاً داخلياً للبيانات. لم يدعم " |
| 414 |
"هذا القفل توارث الأولوية وكان عرضة لانعكاس أولوية غير محدود، مرئي على نظام " |
| 415 |
"زمن حقيقي." |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 419 |
#: opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"After the rewrite of the implementation in glibc 2.25 the usage of internal " |
| 422 |
"lock changed. The internal lock is always acquired by the signaling " |
| 423 |
"functions B<pthread_cond_signal>() and B<pthread_cond_broadcast>(). The " |
| 424 |
"waiting function acquires the lock if the waiting process was interrupted. " |
| 425 |
"The interruption can be caused for instance by a specified timeout, and " |
| 426 |
"denoted by the error value B<ETIMEDOUTA>, or by a received signal, which is " |
| 427 |
"denoted by the error value B<EINTR>." |
| 428 |
msgstr "" |
| 429 |
"بعد إعادة كتابة التنفيذ في glibc 2.25، تغير استخدام القفل الداخلي. يُحصل " |
| 430 |
"القفل الداخلي دائماً بواسطة دوال الإشارة B<pthread_cond_signal>() و " |
| 431 |
"B<pthread_cond_broadcast>(). تحصل دالة الانتظار على القفل إذا قُطعت عملية " |
| 432 |
"الانتظار. يمكن أن يحدث القطع مثلاً بسبب مهلة محددة، ويُشار إليه بقيمة الخطأ " |
| 433 |
"B<ETIMEDOUTA>، أو بإشارة مستقبلة، يُشار إليها بقيمة الخطأ B<EINTR>." |
| 434 |
|
| 435 |
#. type: SH |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "EXAMPLE" |
| 440 |
msgstr "مثال" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 444 |
#: opensuse-tumbleweed |
| 445 |
msgid "" |
| 446 |
"Consider two shared variables I<x> and I<y ,> protected by the mutex I<mut>, " |
| 447 |
"and a condition variable I<cond> that is to be signaled whenever I<x> " |
| 448 |
"becomes greater than I<y>." |
| 449 |
msgstr "" |
| 450 |
"اعتبر متغيرين مشتركين I<x> و I<y>، محميين بكائن المزامنة I<mut>، ومتغير شرط " |
| 451 |
"I<cond> يُشار إليه كلما أصبح I<x> أكبر من I<y>." |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "" |
| 458 |
"B<int x,y;\n" |
| 459 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n" |
| 460 |
"pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n" |
| 461 |
msgstr "" |
| 462 |
"B<int x,y;\n" |
| 463 |
"pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;\n" |
| 464 |
"pthread_cond_t cond = PTHREAD_COND_INITIALIZER;>\n" |
| 465 |
|
| 466 |
#. type: Plain text |
| 467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 468 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 469 |
msgid "Waiting until I<x> is greater than I<y> is performed as follows:" |
| 470 |
msgstr "يُجرى الانتظار حتى يصبح I<x> أكبر من I<y> كالتالي:" |
| 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 |
#, no-wrap |
| 476 |
msgid "" |
| 477 |
"B<pthread_mutex_lock(&mut);\n" |
| 478 |
"while (x E<lt>= y) {\n" |
| 479 |
" pthread_cond_wait(&cond, &mut);\n" |
| 480 |
"}\n" |
| 481 |
"/* operate on x and y */\n" |
| 482 |
"pthread_mutex_unlock(&mut);>\n" |
| 483 |
msgstr "" |
| 484 |
"B<pthread_mutex_lock(&mut);\n" |
| 485 |
"while (x E<lt>= y) {\n" |
| 486 |
" pthread_cond_wait(&cond, &mut);\n" |
| 487 |
"}\n" |
| 488 |
"/* operate on x and y */\n" |
| 489 |
"pthread_mutex_unlock(&mut);>\n" |
| 490 |
|
| 491 |
#. type: Plain text |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
msgid "" |
| 495 |
"Modifications on I<x> and I<y> that may cause I<x> to become greater than " |
| 496 |
"I<y> should signal the condition if needed:" |
| 497 |
msgstr "" |
| 498 |
"يجب أن تشير التعديلات على I<x> و I<y> التي قد تجعل I<x> أكبر من I<y> إلى " |
| 499 |
"الشرط إذا لزم الأمر:" |
| 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 |
"/* modify x and y */\n" |
| 508 |
"if (x E<gt> y) pthread_cond_broadcast(&cond);\n" |
| 509 |
"pthread_mutex_unlock(&mut);>\n" |
| 510 |
msgstr "" |
| 511 |
"B<pthread_mutex_lock(&mut);\n" |
| 512 |
"/* modify x and y */\n" |
| 513 |
"if (x E<gt> y) pthread_cond_broadcast(&cond);\n" |
| 514 |
"pthread_mutex_unlock(&mut);>\n" |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 518 |
#: opensuse-tumbleweed |
| 519 |
msgid "" |
| 520 |
"If it can be proved that at most one waiting thread needs to be waken up " |
| 521 |
"(for instance, if there are only two threads communicating through I<x> and " |
| 522 |
"I<y>), B<pthread_cond_signal>() can be used as a slightly more efficient " |
| 523 |
"alternative to B<pthread_cond_broadcast>(). In doubt, use " |
| 524 |
"B<pthread_cond_broadcast>()." |
| 525 |
msgstr "" |
| 526 |
"إذا أمكن إثبات أن خيطاً واحداً على الأكثر يحتاج إلى الإيقاظ (مثلاً، إذا كان " |
| 527 |
"هناك خيطان فقط يتواصلان عبر I<x> و I<y>)، يمكن استخدام " |
| 528 |
"B<pthread_cond_signal>() كبديل أكثر كفاءة بقليل لـ " |
| 529 |
"B<pthread_cond_broadcast>(). في حالة الشك، استخدم " |
| 530 |
"B<pthread_cond_broadcast>()." |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 534 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 535 |
msgid "" |
| 536 |
"To wait for I<x> to become greater than I<y> with a timeout of 5 seconds, do:" |
| 537 |
msgstr "لانتظار I<x> ليصبح أكبر من I<y> بمهلة 5 ثوانٍ، افعل:" |
| 538 |
|
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 541 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 542 |
#, no-wrap |
| 543 |
msgid "" |
| 544 |
"B<struct timeval now;\n" |
| 545 |
"struct timespec timeout;\n" |
| 546 |
"int retcode;\n" |
| 547 |
"\\&\n" |
| 548 |
"pthread_mutex_lock(&mut);\n" |
| 549 |
"gettimeofday(&now);\n" |
| 550 |
"timeout.tv_sec = now.tv_sec + 5;\n" |
| 551 |
"timeout.tv_nsec = now.tv_usec * 1000;\n" |
| 552 |
"retcode = 0;\n" |
| 553 |
"while (x E<lt>= y && retcode != ETIMEDOUT) {\n" |
| 554 |
" retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n" |
| 555 |
"}\n" |
| 556 |
"if (retcode == ETIMEDOUT) {\n" |
| 557 |
" /* timeout occurred */\n" |
| 558 |
"} else {\n" |
| 559 |
" /* operate on x and y */\n" |
| 560 |
"}\n" |
| 561 |
"pthread_mutex_unlock(&mut);>\n" |
| 562 |
msgstr "" |
| 563 |
"B<struct timeval now;\n" |
| 564 |
"struct timespec timeout;\n" |
| 565 |
"int retcode;\n" |
| 566 |
"\\&\n" |
| 567 |
"pthread_mutex_lock(&mut);\n" |
| 568 |
"gettimeofday(&now);\n" |
| 569 |
"timeout.tv_sec = now.tv_sec + 5;\n" |
| 570 |
"timeout.tv_nsec = now.tv_usec * 1000;\n" |
| 571 |
"retcode = 0;\n" |
| 572 |
"while (x E<lt>= y && retcode != ETIMEDOUT) {\n" |
| 573 |
" retcode = pthread_cond_timedwait(&cond, &mut, &timeout);\n" |
| 574 |
"}\n" |
| 575 |
"if (retcode == ETIMEDOUT) {\n" |
| 576 |
" /* timeout occurred */\n" |
| 577 |
"} else {\n" |
| 578 |
" /* operate on x and y */\n" |
| 579 |
"}\n" |
| 580 |
"pthread_mutex_unlock(&mut);>\n" |
| 581 |
|
| 582 |
#. type: TH |
| 583 |
#: debian-trixie |
| 584 |
#, no-wrap |
| 585 |
msgid "2024-06-16" |
| 586 |
msgstr "16 يونيو 2024" |
| 587 |
|
| 588 |
#. type: TH |
| 589 |
#: debian-trixie |
| 590 |
#, no-wrap |
| 591 |
msgid "Linux man-pages 6.9.1" |
| 592 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: debian-trixie fedora-44 fedora-rawhide |
| 596 |
msgid "" |
| 597 |
"A condition (short for ``condition variable'') is a synchronization device " |
| 598 |
"that allows threads to suspend execution and relinquish the processors until " |
| 599 |
"some predicate on shared data is satisfied. The basic operations on " |
| 600 |
"conditions are: signal the condition (when the predicate becomes true), and " |
| 601 |
"wait for the condition, suspending the thread execution until another thread " |
| 602 |
"signals the condition." |
| 603 |
msgstr "" |
| 604 |
"الشرط (اختصار لـ ``متغير شرط'') هو أداة تزامن تسمح للخيوط بتعليق التنفيذ " |
| 605 |
"والتخلي عن المعالجات حتى يُستوفى بعض المسند على البيانات المشتركة. العمليات " |
| 606 |
"الأساسية على الشروط هي: الإشارة إلى الشرط (عندما يصبح المسند صحيحاً)، وانتظار " |
| 607 |
"الشرط، مع تعليق تنفيذ الخيط حتى يشير خيط آخر إلى الشرط." |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: debian-trixie fedora-44 fedora-rawhide |
| 611 |
msgid "" |
| 612 |
"B<pthread_cond_init> initializes the condition variable I<cond>, using the " |
| 613 |
"condition attributes specified in I<cond_attr>, or default attributes if " |
| 614 |
"I<cond_attr> is B<NULL>. The LinuxThreads implementation supports no " |
| 615 |
"attributes for conditions, hence the I<cond_attr> parameter is actually " |
| 616 |
"ignored." |
| 617 |
msgstr "" |
| 618 |
"يهيئ B<pthread_cond_init> متغير الشرط I<cond>، باستخدام سمات الشرط المحددة " |
| 619 |
"في I<cond_attr>، أو السمات المبدئية إذا كان I<cond_attr> هو B<NULL>. لا " |
| 620 |
"يدعم تنفيذ LinuxThreads سمات للشروط، وبالتالي يُتجاهل معامل I<cond_attr> " |
| 621 |
"فعلياً." |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: debian-trixie fedora-44 fedora-rawhide |
| 625 |
msgid "" |
| 626 |
"Variables of type B<pthread_cond_t> can also be initialized statically, " |
| 627 |
"using the constant B<PTHREAD_COND_INITIALIZER>." |
| 628 |
msgstr "" |
| 629 |
"يمكن أيضاً تهيئة متغيرات من النوع B<pthread_cond_t> بشكل ثابت، باستخدام " |
| 630 |
"الثابت B<PTHREAD_COND_INITIALIZER>." |
| 631 |
|
| 632 |
#. type: Plain text |
| 633 |
#: debian-trixie fedora-44 fedora-rawhide |
| 634 |
msgid "" |
| 635 |
"B<pthread_cond_signal> restarts one of the threads that are waiting on the " |
| 636 |
"condition variable I<cond>. If no threads are waiting on I<cond>, nothing " |
| 637 |
"happens. If several threads are waiting on I<cond>, exactly one is " |
| 638 |
"restarted, but it is not specified which." |
| 639 |
msgstr "" |
| 640 |
"يعيد B<pthread_cond_signal> تشغيل أحد الخيوط المنتظرة على متغير الشرط " |
| 641 |
"I<cond>. إذا لم تكن خيوط تنتظر على I<cond>، لا يحدث شيء. إذا كانت عدة خيوط " |
| 642 |
"تنتظر على I<cond>، يُعاد تشغيل واحد بالضبط، لكنه غير محدد أيهما." |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: debian-trixie fedora-44 fedora-rawhide |
| 646 |
msgid "" |
| 647 |
"B<pthread_cond_broadcast> restarts all the threads that are waiting on the " |
| 648 |
"condition variable I<cond>. Nothing happens if no threads are waiting on " |
| 649 |
"I<cond>." |
| 650 |
msgstr "" |
| 651 |
"يعيد B<pthread_cond_broadcast> تشغيل جميع الخيوط المنتظرة على متغير الشرط " |
| 652 |
"I<cond>. لا يحدث شيء إذا لم تكن خيوط تنتظر على I<cond>." |
| 653 |
|
| 654 |
#. type: Plain text |
| 655 |
#: debian-trixie |
| 656 |
msgid "" |
| 657 |
"B<pthread_cond_wait> atomically unlocks the I<mutex> (as per " |
| 658 |
"B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be " |
| 659 |
"signaled. The thread execution is suspended and does not consume any CPU " |
| 660 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 661 |
"by the calling thread on entrance to B<pthread_cond_wait>. Before returning " |
| 662 |
"to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per " |
| 663 |
"B<pthread_lock_mutex>)." |
| 664 |
msgstr "" |
| 665 |
"يفتح B<pthread_cond_wait> I<mutex> بشكل ذري (حسب B<pthread_unlock_mutex>) " |
| 666 |
"وينتظر الإشارة إلى متغير الشرط I<cond>. يُعلق تنفيذ الخيط ولا يستهلك أي وقت " |
| 667 |
"CPU حتى يُشار إلى متغير الشرط. يجب أن يكون I<mutex> مقفلاً بواسطة الخيط " |
| 668 |
"المستدعي عند الدخول إلى B<pthread_cond_wait>. قبل العودة إلى الخيط " |
| 669 |
"المستدعي، يعيد B<pthread_cond_wait> الحصول على I<mutex> (حسب " |
| 670 |
"B<pthread_lock_mutex>)." |
| 671 |
|
| 672 |
#. type: Plain text |
| 673 |
#: debian-trixie fedora-44 fedora-rawhide |
| 674 |
msgid "" |
| 675 |
"Unlocking the mutex and suspending on the condition variable is done " |
| 676 |
"atomically. Thus, if all threads always acquire the mutex before signaling " |
| 677 |
"the condition, this guarantees that the condition cannot be signaled (and " |
| 678 |
"thus ignored) between the time a thread locks the mutex and the time it " |
| 679 |
"waits on the condition variable." |
| 680 |
msgstr "" |
| 681 |
"يتم فتح قفل المِفصل وتعليق الخيط على متغير الشرط بشكل ذري. وبالتالي، إذا " |
| 682 |
"حصلت جميع الخيوط دائمًا على المِفصل قبل الإشارة إلى الشرط، فإن هذا يضمن عدم " |
| 683 |
"إمكانية الإشارة إلى الشرط (وبالتالي تجاهله) بين الوقت الذي يقفل فيه الخيط " |
| 684 |
"المِفصل والوقت الذي ينتظر فيه على متغير الشرط." |
| 685 |
|
| 686 |
#. type: Plain text |
| 687 |
#: debian-trixie fedora-44 fedora-rawhide |
| 688 |
msgid "" |
| 689 |
"B<pthread_cond_timedwait> atomically unlocks I<mutex> and waits on I<cond>, " |
| 690 |
"as B<pthread_cond_wait> does, but it also bounds the duration of the wait. " |
| 691 |
"If I<cond> has not been signaled within the amount of time specified by " |
| 692 |
"I<abstime>, the mutex I<mutex> is re-acquired and B<pthread_cond_timedwait> " |
| 693 |
"returns the error B<ETIMEDOUT>. The I<abstime> parameter specifies an " |
| 694 |
"absolute time, with the same origin as B<time>(2) and B<gettimeofday>(2): an " |
| 695 |
"I<abstime> of 0 corresponds to 00:00:00 GMT, January 1, 1970." |
| 696 |
msgstr "" |
| 697 |
"تفتح الدالة B<pthread_cond_timedwait> I<mutex> بشكل ذري وتنتظر على I<cond>، " |
| 698 |
"كما تفعل B<pthread_cond_wait>، ولكنها أيضًا تحد من مدة الانتظار. إذا لم يتم " |
| 699 |
"الإشارة إلى I<cond> خلال المدة الزمنية المحددة بواسطة I<abstime>، يُعاد " |
| 700 |
"الحصول على المِفصل I<mutex> وتُرجع B<pthread_cond_timedwait> الخطأ " |
| 701 |
"B<ETIMEDOUT>. يُحدد المُعامل I<abstime> وقتًا مطلقًا، بنفس الأصل مثل B<time>(2) " |
| 702 |
"وB<gettimeofday>(2): I<abstime> بقيمة 0 يقابل 00:00:00 بتوقيت غرينتش، 1 " |
| 703 |
"يناير 1970." |
| 704 |
|
| 705 |
#. type: Plain text |
| 706 |
#: debian-trixie fedora-44 fedora-rawhide |
| 707 |
msgid "" |
| 708 |
"B<pthread_cond_destroy> destroys a condition variable, freeing the resources " |
| 709 |
"it might hold. No threads must be waiting on the condition variable on " |
| 710 |
"entrance to B<pthread_cond_destroy>. In the LinuxThreads implementation, no " |
| 711 |
"resources are associated with condition variables, thus " |
| 712 |
"B<pthread_cond_destroy> actually does nothing except checking that the " |
| 713 |
"condition has no waiting threads." |
| 714 |
msgstr "" |
| 715 |
"تدمر الدالة B<pthread_cond_destroy> متغير شرط، وتحرر الموارد التي قد يحتفظ " |
| 716 |
"بها. يجب ألا تكون أي خيوط في انتظار متغير الشرط عند الدخول إلى " |
| 717 |
"B<pthread_cond_destroy>. في تطبيق LinuxThreads، لا توجد موارد مرتبطة " |
| 718 |
"بمتغيرات الشرط، وبالتالي لا تفعل B<pthread_cond_destroy> شيئًا فعليًا سوى " |
| 719 |
"التحقق من عدم وجود خيوط منتظرة على الشرط." |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: debian-trixie fedora-44 fedora-rawhide |
| 723 |
msgid "" |
| 724 |
"B<pthread_cond_wait> and B<pthread_cond_timedwait> are cancelation points. " |
| 725 |
"If a thread is cancelled while suspended in one of these functions, the " |
| 726 |
"thread immediately resumes execution, then locks again the I<mutex> argument " |
| 727 |
"to B<pthread_cond_wait> and B<pthread_cond_timedwait>, and finally executes " |
| 728 |
"the cancelation. Consequently, cleanup handlers are assured that I<mutex> " |
| 729 |
"is locked when they are called." |
| 730 |
msgstr "" |
| 731 |
"B<pthread_cond_wait> وB<pthread_cond_timedwait> هما نقطتا إلغاء. إذا أُلغي " |
| 732 |
"خيط أثناء تعليقه في إحدى هاتين الدالتين، يستأنف الخيط التنفيذ فورًا، ثم يقفل " |
| 733 |
"مرة أخرى وسيط I<mutex> الخاص بـ B<pthread_cond_wait> " |
| 734 |
"وB<pthread_cond_timedwait>، وأخيرًا ينفذ الإلغاء. وبالتالي، يُضمن لمعالجات " |
| 735 |
"التنظيف أن I<mutex> مقفل عند استدعائها." |
| 736 |
|
| 737 |
#. type: Plain text |
| 738 |
#: debian-trixie fedora-44 fedora-rawhide |
| 739 |
msgid "" |
| 740 |
"The condition functions are not async-signal safe, and should not be called " |
| 741 |
"from a signal handler. In particular, calling B<pthread_cond_signal> or " |
| 742 |
"B<pthread_cond_broadcast> from a signal handler may deadlock the calling " |
| 743 |
"thread." |
| 744 |
msgstr "" |
| 745 |
"دوال الشرط ليست آمنة للإشارات غير المتزامنة، ولا ينبغي استدعاؤها من معالج " |
| 746 |
"إشارة. على وجه الخصوص، قد يؤدي استدعاء B<pthread_cond_signal> أو " |
| 747 |
"B<pthread_cond_broadcast> من معالج إشارة إلى تعطيل الخيط المستدعي." |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: debian-trixie fedora-44 fedora-rawhide |
| 751 |
msgid "" |
| 752 |
"B<pthread_cond_init>, B<pthread_cond_signal>, B<pthread_cond_broadcast>, and " |
| 753 |
"B<pthread_cond_wait> never return an error code." |
| 754 |
msgstr "" |
| 755 |
"لا تُرجع الدوال B<pthread_cond_init> وB<pthread_cond_signal> " |
| 756 |
"وB<pthread_cond_broadcast> وB<pthread_cond_wait> أي رمز خطأ أبدًا." |
| 757 |
|
| 758 |
#. type: Plain text |
| 759 |
#: debian-trixie fedora-44 fedora-rawhide |
| 760 |
msgid "" |
| 761 |
"The B<pthread_cond_timedwait> function returns the following error codes on " |
| 762 |
"error:" |
| 763 |
msgstr "تُرجع الدالة B<pthread_cond_timedwait> رموز الخطأ التالية عند حدوث خطأ:" |
| 764 |
|
| 765 |
#. type: Plain text |
| 766 |
#: debian-trixie fedora-44 fedora-rawhide |
| 767 |
msgid "" |
| 768 |
"The condition variable was not signaled until the timeout specified by " |
| 769 |
"I<abstime>." |
| 770 |
msgstr "لم يتم الإشارة إلى متغير الشرط حتى المهلة المحددة بواسطة I<abstime>." |
| 771 |
|
| 772 |
#. type: TP |
| 773 |
#: debian-trixie |
| 774 |
#, no-wrap |
| 775 |
msgid "B<EINTR>" |
| 776 |
msgstr "B<EINTR>" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: debian-trixie |
| 780 |
msgid "B<pthread_cond_timedwait> was interrupted by a signal." |
| 781 |
msgstr "قُطعت B<pthread_cond_timedwait> بواسطة إشارة." |
| 782 |
|
| 783 |
#. type: Plain text |
| 784 |
#: debian-trixie fedora-44 fedora-rawhide |
| 785 |
msgid "" |
| 786 |
"The B<pthread_cond_destroy> function returns the following error code on " |
| 787 |
"error:" |
| 788 |
msgstr "تُرجع الدالة B<pthread_cond_destroy> رمز الخطأ التالي عند حدوث خطأ:" |
| 789 |
|
| 790 |
#. type: Plain text |
| 791 |
#: debian-trixie fedora-44 fedora-rawhide |
| 792 |
msgid "Some threads are currently waiting on I<cond>." |
| 793 |
msgstr "بعض الخيوط تنتظر حاليًا على I<cond>." |
| 794 |
|
| 795 |
#. type: Plain text |
| 796 |
#: debian-trixie fedora-44 fedora-rawhide |
| 797 |
msgid "" |
| 798 |
"Consider two shared variables I<x> and I<y>, protected by the mutex I<mut>, " |
| 799 |
"and a condition variable I<cond> that is to be signaled whenever I<x> " |
| 800 |
"becomes greater than I<y>." |
| 801 |
msgstr "" |
| 802 |
"ضع في اعتبارك متغيرين مشتركين I<x> وI<y>، محميين بواسطة المِفصل I<mut>، " |
| 803 |
"ومتغير شرط I<cond> يجب الإشارة إليه كلما أصبح I<x> أكبر من I<y>." |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: debian-trixie fedora-44 fedora-rawhide |
| 807 |
msgid "" |
| 808 |
"If it can be proved that at most one waiting thread needs to be waken up " |
| 809 |
"(for instance, if there are only two threads communicating through I<x> and " |
| 810 |
"I<y>), B<pthread_cond_signal> can be used as a slightly more efficient " |
| 811 |
"alternative to B<pthread_cond_broadcast>. In doubt, use " |
| 812 |
"B<pthread_cond_broadcast>." |
| 813 |
msgstr "" |
| 814 |
"إذا أمكن إثبات أن خيطًا واحدًا منتظرًا على الأكثر يحتاج إلى الاستيقاظ (على سبيل " |
| 815 |
"المثال، إذا كان هناك خيطان فقط يتواصلان عبر I<x> وI<y>)، يمكن استخدام " |
| 816 |
"B<pthread_cond_signal> كبديل أكثر كفاءة قليلاً لـ B<pthread_cond_broadcast>. " |
| 817 |
"في حالة الشك، استخدم B<pthread_cond_broadcast>." |
| 818 |
|
| 819 |
#. type: TH |
| 820 |
#: fedora-44 fedora-rawhide |
| 821 |
#, no-wrap |
| 822 |
msgid "2025-01-04" |
| 823 |
msgstr "4 يناير 2025" |
| 824 |
|
| 825 |
#. type: TH |
| 826 |
#: fedora-44 fedora-rawhide |
| 827 |
#, no-wrap |
| 828 |
msgid "Linux man-pages 6.13" |
| 829 |
msgstr "صفحات دليل لينكس 6.13" |
| 830 |
|
| 831 |
#. type: Plain text |
| 832 |
#: fedora-44 fedora-rawhide |
| 833 |
msgid "" |
| 834 |
"B<pthread_cond_wait> atomically unlocks the I<mutex> (as per " |
| 835 |
"B<pthread_unlock_mutex>) and waits for the condition variable I<cond> to be " |
| 836 |
"signaled. The thread execution is suspended and does not consume any CPU " |
| 837 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 838 |
"by the calling thread on entrance to B<pthread_cond_wait>. Before returning " |
| 839 |
"to the calling thread, B<pthread_cond_wait> re-acquires I<mutex> (as per " |
| 840 |
"B<pthread_mutex_lock>)." |
| 841 |
msgstr "" |
| 842 |
"تفتح الدالة B<pthread_cond_wait> I<mutex> بشكل ذري (وفقًا لـ " |
| 843 |
"B<pthread_unlock_mutex>) وتنتظر الإشارة إلى متغير الشرط I<cond>. يُعلق تنفيذ " |
| 844 |
"الخيط ولا يستهلك أي وقت من وحدة المعالجة المركزية حتى يتم الإشارة إلى متغير " |
| 845 |
"الشرط. يجب أن يكون I<mutex> مقفلاً بواسطة الخيط المستدعي عند الدخول إلى " |
| 846 |
"B<pthread_cond_wait>. قبل العودة إلى الخيط المستدعي، تعيد " |
| 847 |
"B<pthread_cond_wait> الحصول على I<mutex> (وفقًا لـ B<pthread_mutex_lock>)." |
| 848 |
|
| 849 |
#. type: TH |
| 850 |
#: mageia-cauldron |
| 851 |
#, no-wrap |
| 852 |
msgid "2025-10-16" |
| 853 |
msgstr "16 أكتوبر 2025" |
| 854 |
|
| 855 |
#. type: TH |
| 856 |
#: mageia-cauldron |
| 857 |
#, no-wrap |
| 858 |
msgid "Linux man-pages 6.17" |
| 859 |
msgstr "صفحات دليل لينكس 6.17" |
| 860 |
|
| 861 |
#. type: Plain text |
| 862 |
#: mageia-cauldron |
| 863 |
msgid "" |
| 864 |
"B<pthread_cond_wait>() atomically unlocks the I<mutex> (as per " |
| 865 |
"B<pthread_unlock_mutex>()) and waits for the condition variable I<cond> to " |
| 866 |
"be signaled. The thread execution is suspended and does not consume any CPU " |
| 867 |
"time until the condition variable is signaled. The I<mutex> must be locked " |
| 868 |
"by the calling thread on entrance to B<pthread_cond_wait>(). Before " |
| 869 |
"returning to the calling thread, B<pthread_cond_wait>() re-acquires " |
| 870 |
"I<mutex> (as per B<pthread_mutex_lock>())." |
| 871 |
msgstr "" |
| 872 |
"تفتح الدالة B<pthread_cond_wait>() I<mutex> بشكل ذري (وفقًا لـ " |
| 873 |
"B<pthread_unlock_mutex>()) وتنتظر الإشارة إلى متغير الشرط I<cond>. يُعلق " |
| 874 |
"تنفيذ الخيط ولا يستهلك أي وقت من وحدة المعالجة المركزية حتى يتم الإشارة إلى " |
| 875 |
"متغير الشرط. يجب أن يكون I<mutex> مقفلاً بواسطة الخيط المستدعي عند الدخول " |
| 876 |
"إلى B<pthread_cond_wait>(). قبل العودة إلى الخيط المستدعي، تعيد " |
| 877 |
"B<pthread_cond_wait>() الحصول على I<mutex> (وفقًا لـ B<pthread_mutex_lock>())." |
| 878 |
|
| 879 |
#. type: TH |
| 880 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 881 |
#, no-wrap |
| 882 |
msgid "Linux man-pages (unreleased)" |
| 883 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |