Debian Codegraph @

po/ru/man3/pthread_setcancelstate.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "pthread_setcancelstate"
32 msgstr ""
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2025-05-17"
39 msgstr "17 мая 2025 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid ""
59 "pthread_setcancelstate, pthread_setcanceltype - set cancelability state and "
60 "type"
61 msgstr ""
62 "pthread_setcancelstate, pthread_setcanceltype - изменяет состояния и тип "
63 "отменяемости"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "LIBRARY"
70 msgstr "БИБЛИОТЕКА"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
76 msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "СИНТАКСИС"
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 "B<#include E<lt>pthread.hE<gt>>\n"
90 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<int pthread_setcancelstate(int >I<state>B<, int *>I<oldstate>B<);>\n"
98 "B<int pthread_setcanceltype(int >I<type>B<, int *>I<oldtype>B<);>\n"
99 msgstr ""
100 "B<int pthread_setcancelstate(int >I<state>B<, int *>I<oldstate>B<);>\n"
101 "B<int pthread_setcanceltype(int >I<type>B<, int *>I<oldtype>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 "ОПИСАНИЕ"
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 "The B<pthread_setcancelstate>() sets the cancelability state of the calling "
115 "thread to the value given in I<state>. The previous cancelability state of "
116 "the thread is returned in the buffer pointed to by I<oldstate>. The "
117 "I<state> argument must have one of the following values:"
118 msgstr ""
119 "Функция B<pthread_setcancelstate>() изменяет состояние отменяемости "
120 "вызывающий нити на значение I<state>. Предыдущее состояние отменяемости нити "
121 "возвращается в буфер, на который указывает I<oldstate>. Аргументом I<state> "
122 "должно быть одно из следующих значений:"
123
124 #. type: TP
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "B<PTHREAD_CANCEL_ENABLE>"
129 msgstr "B<PTHREAD_CANCEL_ENABLE>"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, fuzzy
135 #| msgid ""
136 #| "The thread is cancelable. This is the default cancelability state in all "
137 #| "new threads, including the initial thread. The thread's cancelability "
138 #| "type determines when a cancelable thread will respond to a cancellation "
139 #| "request."
140 msgid ""
141 "The thread is cancelable. This is the default cancelability state in all "
142 "new threads, including the initial thread. The thread's cancelability type "
143 "determines when a cancelable thread will respond to a cancelation request."
144 msgstr ""
145 "Нить является отменяемой. Для всех новых нитей, включая начальную, это "
146 "состояние является основным по умолчанию. Тип отменяемости нити определяет, "
147 "когда нить будет отвечать на запрос об отмене."
148
149 #. type: TP
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<PTHREAD_CANCEL_DISABLE>"
154 msgstr "B<PTHREAD_CANCEL_DISABLE>"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, fuzzy
160 #| msgid ""
161 #| "The thread is not cancelable. If a cancellation request is received, it "
162 #| "is blocked until cancelability is enabled."
163 msgid ""
164 "The thread is not cancelable. If a cancelation request is received, it is "
165 "blocked until cancelability is enabled."
166 msgstr ""
167 "Нить является неотменяемой. Если был получен запрос об отмене, он будет "
168 "блокироваться до тех пор, пока не будет включена отменяемость."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The B<pthread_setcanceltype>() sets the cancelability type of the calling "
175 "thread to the value given in I<type>. The previous cancelability type of "
176 "the thread is returned in the buffer pointed to by I<oldtype>. The I<type> "
177 "argument must have one of the following values:"
178 msgstr ""
179 "Функция B<pthread_setcanceltype>() изменяет тип отменяемости вызывающий нити "
180 "на значение I<type>. Предыдущий тип отменяемости нити возвращается в буфер, "
181 "на который указывает I<oldstate>. Аргументом I<type> должно быть одно из "
182 "следующих значений:"
183
184 #. type: TP
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "B<PTHREAD_CANCEL_DEFERRED>"
189 msgstr "B<PTHREAD_CANCEL_DEFERRED>"
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, fuzzy
195 #| msgid ""
196 #| "A cancellation request is deferred until the thread next calls a function "
197 #| "that is a cancellation point (see B<pthreads>(7)). This is the default "
198 #| "cancelability type in all new threads, including the initial thread."
199 msgid ""
200 "A cancelation request is deferred until the thread next calls a function "
201 "that is a cancelation point (see B<pthreads>(7)). This is the default "
202 "cancelability type in all new threads, including the initial thread."
203 msgstr ""
204 "Запрос отменяемости откладывается до тех пор, пока нить не вызовет функцию, "
205 "являющуюся точкой отмены (смотрите B<pthreads>(7)). Данный тип является "
206 "умолчательным для всех нитей, включая начальную."
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "Even with deferred cancelation, a cancelation point in an asynchronous "
213 "signal handler may still be acted upon and the effect is as if it was an "
214 "asynchronous cancelation."
215 msgstr ""
216
217 #. type: TP
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "B<PTHREAD_CANCEL_ASYNCHRONOUS>"
222 msgstr "B<PTHREAD_CANCEL_ASYNCHRONOUS>"
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, fuzzy
228 #| msgid ""
229 #| "The thread can be canceled at any time. (Typically, it will be canceled "
230 #| "immediately upon receiving a cancellation request, but the system doesn't "
231 #| "guarantee this.)"
232 msgid ""
233 "The thread can be canceled at any time. (Typically, it will be canceled "
234 "immediately upon receiving a cancelation request, but the system doesn't "
235 "guarantee this.)"
236 msgstr ""
237 "Нить может быть отменена в любой момент (практически сразу же после "
238 "получения запроса об отмене, однако система не гарантирует этого)."
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "The set-and-get operation performed by each of these functions is atomic "
245 "with respect to other threads in the process calling the same function."
246 msgstr ""
247 "Операции установки и получения (set-and-get), выполняемые каждой из этих "
248 "функций, являются атомарными для предотвращения пересечения с другими "
249 "процессами, вызывающими ту же функцию."
250
251 #. type: SH
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "RETURN VALUE"
256 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "On success, these functions return 0; on error, they return a nonzero error "
263 "number."
264 msgstr ""
265 "При успешном выполнении эти функции возвращают 0; при ошибке возвращается "
266 "ненулевой номер ошибки."
267
268 #. type: SH
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "ERRORS"
273 msgstr "ОШИБКИ"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "The B<pthread_setcancelstate>() can fail with the following error:"
279 msgstr ""
280 "Функция B<pthread_setcancelstate>() может завершиться со следующей ошибкой:"
281
282 #. type: TP
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "B<EINVAL>"
287 msgstr "B<EINVAL>"
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "Invalid value for I<state>."
293 msgstr "Неправильное значение для I<state>."
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "The B<pthread_setcanceltype>() can fail with the following error:"
299 msgstr ""
300 "Функция B<pthread_setcanceltype>() может завершиться со следующей ошибкой:"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid "Invalid value for I<type>."
306 msgstr "Неправильное значение для I<type>."
307
308 #. type: SH
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "ATTRIBUTES"
313 msgstr "АТРИБУТЫ"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "For an explanation of the terms used in this section, see B<attributes>(7)."
320 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
321
322 #. type: tbl table
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "Interface"
327 msgstr "Интерфейс"
328
329 #. type: tbl table
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "Attribute"
334 msgstr "Атрибут"
335
336 #. type: tbl table
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "Value"
341 msgstr "Значение"
342
343 #. type: tbl table
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid ".na\n"
348 msgstr ".na\n"
349
350 #. type: tbl table
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid ".nh\n"
355 msgstr ".nh\n"
356
357 #. type: tbl table
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid ""
362 "B<pthread_setcancelstate>(),\n"
363 "B<pthread_setcanceltype>()"
364 msgstr ""
365 "B<pthread_setcancelstate>(),\n"
366 "B<pthread_setcanceltype>()"
367
368 #. type: tbl table
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "Thread safety"
373 msgstr "Безвредность в нитях"
374
375 #. type: tbl table
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "MT-Safe"
380 msgstr "MT-Safe"
381
382 #. type: tbl table
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "Async-cancel safety"
387 msgstr "Безопасность асинхронной отмены"
388
389 #. type: tbl table
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "AC-Safe"
394 msgstr "AC-Safe"
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "STANDARDS"
401 msgstr "СТАНДАРТЫ"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid "POSIX.1-2008."
407 msgstr "POSIX.1-2008."
408
409 #. type: SH
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "HISTORY"
414 msgstr "ИСТОРИЯ"
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid "glibc 2.0 POSIX.1-2001."
420 msgstr "glibc 2.0 POSIX.1-2001."
421
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "NOTES"
427 msgstr "ПРИМЕЧАНИЯ"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, fuzzy
433 #| msgid ""
434 #| "For details of what happens when a thread is canceled, see "
435 #| "B<pthread_cancel>(3)."
436 msgid ""
437 "For details of what happens when a thread is canceled, see B<\\"
438 "%pthread_cancel>(3)."
439 msgstr ""
440 "Информацию о том, что происходит с отменяемой нитью, смотрите в "
441 "B<pthread_cancel>(3)."
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, fuzzy
447 #| msgid ""
448 #| "Briefly disabling cancelability is useful if a thread performs some "
449 #| "critical action that must not be interrupted by a cancellation request. "
450 #| "Beware of disabling cancelability for long periods, or around operations "
451 #| "that may block for long periods, since that will render the thread "
452 #| "unresponsive to cancellation requests."
453 msgid ""
454 "Briefly disabling cancelability is useful if a thread performs some critical "
455 "action that must not be interrupted by a cancelation request. Beware of "
456 "disabling cancelability for long periods, or around operations that may "
457 "block for long periods, since that will render the thread unresponsive to "
458 "cancelation requests."
459 msgstr ""
460 "Запрет отмены на короткое время полезен, если нить выполняет какое-то важное "
461 "действие, которое не должно прерываться запросом отмены. Остерегайтесь "
462 "запретов отмены на длительный срок или для операций, которые могут занять "
463 "много времени, так как нить при этом перестанет отвечать на запросы отмены."
464
465 #. type: SS
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "Asynchronous cancelability"
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 #, fuzzy
476 #| msgid ""
477 #| "Setting the cancelability type to B<PTHREAD_CANCEL_ASYNCHRONOUS> is "
478 #| "rarely useful. Since the thread could be canceled at I<any> time, it "
479 #| "cannot safely reserve resources (e.g., allocating memory with "
480 #| "B<malloc>(3)), acquire mutexes, semaphores, or locks, and so on. "
481 #| "Reserving resources is unsafe because the application has no way of "
482 #| "knowing what the state of these resources is when the thread is canceled; "
483 #| "that is, did cancellation occur before the resources were reserved, while "
484 #| "they were reserved, or after they were released? Furthermore, some "
485 #| "internal data structures (e.g., the linked list of free blocks managed by "
486 #| "the B<malloc>(3) family of functions) may be left in an inconsistent "
487 #| "state if cancellation occurs in the middle of the function call. "
488 #| "Consequently, clean-up handlers cease to be useful."
489 msgid ""
490 "Setting the cancelability type to B<PTHREAD_CANCEL_ASYNCHRONOUS> is rarely "
491 "useful. Since the thread could be canceled at I<any> time, it cannot safely "
492 "reserve resources (e.g., allocating memory with B<malloc>(3)), acquire "
493 "mutexes, semaphores, or locks, and so on. Reserving resources is unsafe "
494 "because the application has no way of knowing what the state of these "
495 "resources is when the thread is canceled; that is, did cancelation occur "
496 "before the resources were reserved, while they were reserved, or after they "
497 "were released? Furthermore, some internal data structures (e.g., the linked "
498 "list of free blocks managed by the B<malloc>(3) family of functions) may be "
499 "left in an inconsistent state if cancelation occurs in the middle of the "
500 "function call. Consequently, clean-up handlers cease to be useful."
501 msgstr ""
502 "Задание типа отменяемости B<PTHREAD_CANCEL_ASYNCHRONOUS> полезно редко. Так "
503 "как нить может быть отменена в I<любой> момент, невозможно безопасно "
504 "резервировать ресурсы (например, выделять память с помощью B<malloc>(3)), "
505 "захватывать мьютексы, семафоры или блокировки и так далее. Резервирование "
506 "ресурсов небезопасно, так как приложение не может узнать состояние этих "
507 "ресурсов при отмене нити; то есть, произошла ли отмена до резервирования "
508 "ресурсов, во время из резервирования или после их освобождения? Кроме того, "
509 "некоторые внутренние структуры данных (например, связные списки свободных "
510 "блоков, управляемые семейством функций B<malloc>(3)) могут остаться в не "
511 "целостном состоянии, если отмена происходит в середине вызова функции. "
512 "Следовательно, обработчики очистки перестают быть полезными."
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "Functions that can be safely asynchronously canceled are called I<async-"
519 "cancel-safe functions>. POSIX.1-2001 and POSIX.1-2008 require only that "
520 "B<pthread_cancel>(3), B<pthread_setcancelstate>(), and "
521 "B<pthread_setcanceltype>() be async-cancel-safe. In general, other library "
522 "functions can't be safely called from an asynchronously cancelable thread."
523 msgstr ""
524 "Функции, которые можно безопасно асинхронно отменять называются I<функциями "
525 "async-cancel-safe>. В POSIX.1-2001 и POSIX.1-2008 требуется, чтобы такими "
526 "функция были только B<pthread_cancel>(3), B<pthread_setcancelstate>() и "
527 "B<pthread_setcanceltype>(). В общем, другие функции библиотеки нельзя "
528 "безопасно вызывать из асинхронно отменяемой нити."
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, fuzzy
534 #| msgid ""
535 #| "One of the few circumstances in which asynchronous cancelability is "
536 #| "useful is for cancellation of a thread that is in a pure compute-bound "
537 #| "loop."
538 msgid ""
539 "One of the few circumstances in which asynchronous cancelability is useful "
540 "is for cancelation of a thread that is in a pure compute-bound loop."
541 msgstr ""
542 "Одной из нескольких ситуаций, в которых асинхронная отменяемость полезна, "
543 "является отменяемость нити, которая находится в цикле, занимающимся только "
544 "вычислениями."
545
546 #. type: SS
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "Portability notes"
551 msgstr "Замечания о переносимости"
552
553 #. It looks like at least Solaris, FreeBSD and Tru64 support this.
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid ""
558 "The Linux threading implementations permit the I<oldstate> argument of "
559 "B<pthread_setcancelstate>() to be NULL, in which case the information about "
560 "the previous cancelability state is not returned to the caller. Many other "
561 "implementations also permit a NULL I<oldstat> argument, but POSIX.1 does not "
562 "specify this point, so portable applications should always specify a non-"
563 "NULL value in I<oldstate>. A precisely analogous set of statements applies "
564 "for the I<oldtype> argument of B<pthread_setcanceltype>()."
565 msgstr ""
566 "Реализации нитей в Linux позволяют присваивать аргументу I<oldstate> функции "
567 "B<pthread_setcancelstate>() значение NULL; в этом случае информация о "
568 "предыдущем состоянии отмены не возвращается вызывающему. Многие другие "
569 "реализации также допускают NULL в качестве значения I<oldstat>, но POSIX.1 "
570 "этот случай не рассматривается, поэтому переносимые приложения должны всегда "
571 "указывать в I<oldstate> значение, отличное от NULL. Эти утверждения "
572 "относятся и к аргументу I<oldtype> функции B<pthread_setcanceltype>()."
573
574 #. type: SH
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, no-wrap
578 msgid "EXAMPLES"
579 msgstr "ПРИМЕРЫ"
580
581 #. type: Plain text
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 msgid "See B<pthread_cancel>(3)."
585 msgstr "Смотрите B<pthread_cancel>(3)."
586
587 #. type: SH
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "SEE ALSO"
592 msgstr "СМОТРИТЕ ТАКЖЕ"
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "B<pthread_cancel>(3), B<pthread_cleanup_push>(3), B<pthread_testcancel>(3), "
599 "B<pthreads>(7)"
600 msgstr ""
601 "B<pthread_cancel>(3), B<pthread_cleanup_push>(3), B<pthread_testcancel>(3), "
602 "B<pthreads>(7)"
603
604 #. type: TH
605 #: debian-trixie
606 #, no-wrap
607 msgid "2024-05-02"
608 msgstr "2 мая 2024 г."
609
610 #. type: TH
611 #: debian-trixie
612 #, no-wrap
613 msgid "Linux man-pages 6.9.1"
614 msgstr "Страницы руководства Linux 6.9.1"
615
616 #. type: Plain text
617 #: debian-trixie
618 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
619 msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)"
620
621 #. type: TH
622 #: fedora-44 fedora-rawhide
623 #, no-wrap
624 msgid "2024-07-23"
625 msgstr "23 июля 2024 г."
626
627 #. type: TH
628 #: fedora-44 fedora-rawhide
629 #, no-wrap
630 msgid "Linux man-pages 6.13"
631 msgstr "Страницы руководства Linux 6.13"
632
633 #. type: TH
634 #: mageia-cauldron
635 #, no-wrap
636 msgid "Linux man-pages 6.17"
637 msgstr "Страницы руководства Linux 6.17"
638
639 #. type: TH
640 #: opensuse-leap-16-1 opensuse-tumbleweed
641 #, no-wrap
642 msgid "Linux man-pages (unreleased)"
643 msgstr "Страницы руководства Linux (не выпущены)"