JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... np(routine, arg); pthread_cleanup_pop_restore_np(execute); と以下は等価である (但し、上の方がより簡潔で効率的である)。 int oldtype; pthread_cleanup_push(routine, arg); pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype); ... pthread_setcanceltype(o ... ... np(routine, arg); pthread_cleanup_pop_restore_np(execute); と以下は等価である (但し、上の方がより簡潔で効率的である)。 int oldtype; pthread_cleanup_push(routine, arg); pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype); ... pthread_setcanceltype(o ... ... thread_setcancelstate(int state , int * oldstate ); int pthread_setcanceltype(int type , int * oldtype ); -pthread でコンパイルしてリンクする。 説明 pthread_setcancelstate () は、呼び出したスレッドの cancelability state に st ... () は、呼び出したスレッドの cancelability type に type で指定された値を設定する。 変更前のスレッドの cancelability type は oldtype が指すバッファーで返される。 type 引数には以下の値のいずれか一つを指定しなければならない。 PTHREAD_CANCEL_DEFERRED そのスレ ... 、移植性が必要なアプリケーションでは常に oldstate に NULL 以外の値を指定するようにすべきである。 pthread_setcanceltype () の oldtype 引数についても、全く同じことが言える。 例 pthread_cancel (3) を参照。 関連項目 pthread_cancel (3), pthread_cleanup_push (3 ... ... thread_setcancelstate(int state , int * oldstate ); int pthread_setcanceltype(int type , int * oldtype ); -pthread でコンパイルしてリンクする。 説明 pthread_setcancelstate () は、呼び出したスレッドの cancelability state に st ... () は、呼び出したスレッドの cancelability type に type で指定された値を設定する。 変更前のスレッドの cancelability type は oldtype が指すバッファーで返される。 type 引数には以下の値のいずれか一つを指定しなければならない。 PTHREAD_CANCEL_DEFERRED そのスレ ... 、移植性が必要なアプリケーションでは常に oldstate に NULL 以外の値を指定するようにすべきである。 pthread_setcanceltype () の oldtype 引数についても、全く同じことが言える。 例 pthread_cancel (3) を参照。 関連項目 pthread_cancel (3), pthread_cleanup_push (3 ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。