pthread_testcancel
Section: C Library Functions (3)
Updated: 2025-05-17
Index
JM Home Page
roff page
名前
pthread_testcancel - 処理待ちの取り消し要求の配送を要求する
ライブラリ
POSIX スレッドライブラリ (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)), or no
cancelation request is pending, then a call to pthread_testcancel() has
no effect.
返り値
この関数は値を返さない。この関数の呼び出しの結果、呼び出したスレッドが
キャンセルされた場合、この関数が返ることはない。
エラー
この関数は常に成功する。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
pthread_testcancel()
| Thread safety | MT-Safe
|
標準規格
POSIX.1-2008.
歴史
glibc 2.0. POSIX.1-2001.
例
pthread_cleanup_push(3) を参照。
関連項目
pthread_cancel(3), pthread_cleanup_push(3),
pthread_setcancelstate(3), pthreads(7)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- エラー
-
- 属性
-
- 標準規格
-
- 歴史
-
- 例
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.