この関数は、スレッドの取り消し可能タイプを設定するために使用できます。新しいタイプは、引き数 type に従って設定されます。以前のタイプは、引き数 oldtype に戻されます。これらの引き数は、以下のいずれかの Fortran 定数の値を想定します。
戻りコード
この関数の実行時にエラーを検出すると、以下のエラー・コードを戻します。
例
integer function f_pthread_setcanceltype(type, oldtype) integer(4), intent(in):: type integer(4), intent(out):: oldtype end function