pthread_testcancel(3)

request delivery of any pending cancelation request · man3 · Русский

pthread_testcancel(3) Library Functions Manual pthread_testcancel(3)

pthread_testcancel - request delivery of any pending cancelation request

POSIX threads library (libpthread, -lpthread)

#include <pthread.h>
void pthread_testcancel(void);

Calling pthread_testcancel() creates a cancelation point within the calling thread, so that a thread that is otherwise executing code that contains no cancelation points will respond to a cancelation request.

If cancelability is disabled (using pthread_setcancelstate(3)EN), or no cancelation request is pending, then a call to pthread_testcancel() has no effect.

Эта функция не возвращает значения. Если вызвавшая нить отменяется из-за вызова этой функции, то функция не возвращает управление.

Данная функция всегда завершается успешно.

Описание терминов данного раздела смотрите в attributes(7).

Интерфейс Атрибут Значение
pthread_testcancel() Безвредность в нитях MT-Safe

POSIX.1-2001, POSIX.1-2008.

See pthread_cleanup_push(3)EN.

pthread_cancel(3)EN, pthread_cleanup_push(3)EN, pthread_setcancelstate(3)EN, pthreads(7)

Русский перевод этой страницы руководства был сделан Alexey, Azamat Hackimov <azamat.hackimov@gmail.com>, kogamatranslator49 <r.podarov@yandex.ru>, Kogan, Max Is <ismax799@gmail.com>, Yuri Kozlov <yuray@komyakino.ru> и Иван Павлов <pavia00@gmail.com>

Этот перевод является бесплатной документацией; прочитайте Стандартную общественную лицензию GNU версии 3 или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ.

Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на man-pages-ru-talks@lists.sourceforge.net.

15 декабря 2022 г. Linux man-pages 6.03