標準/拡張機能 | C/C++ | 依存項目 |
---|---|---|
Single UNIX Specification、バージョン 3 |
両方 | z/OS V1R7 |
#define _OPEN_THREADS 2
#include <pthread.h>
int pthread_setcanceltype(int type, int *oldtype);
pthread_setcanceltype() は、取り消し要求が有効になる時点を制御します。前の type は、oldtype によって示された場所に格納されます。 取り消し可能タイプは次のとおりです。
正常に実行された場合、pthread_setcanceltype() は 0 を戻します。失敗した場合は、次の EINVAL エラー・コードを戻します。