.\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk .\" .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2012 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2012-05-04, Akihiro MOTOKI .\" .TH PTHREAD_KILL_OTHER_THREADS_NP 3 2010\-09\-09 Linux "Linux Programmer's Manual" .SH 名前 pthread_kill_other_threads_np \- プロセス内の他の全スレッドを終了する .SH 書式 .nf \fB#include \fP \fBvoid pthread_kill_other_threads_np(void);\fP .fi .SH 説明 .\" .SH VERSIONS .\" Available since glibc 2.0 \fBpthread_kill_other_threads_np\fP() は、 LinuxThreads スレッド実装においてのみ効果がある。 LinuxThreads スレッド実装では、この関数を呼び出すと アプリケーション内の全てのスレッドがすぐに終了される。 終了対象のスレッドの cancelability state と cancelability type は 無視され、それらのスレッドのクリーンアップハンドラは呼び出されない。 .SH 準拠 この関数は非標準の GNU による拡張である。 そのため、名前に "_np" (nonportable; 移植性がない) という接尾辞が 付いている。 .SH 注意 \fBpthread_kill_other_threads_np\fP() は、 スレッドが \fBexecve\fP(2) や同様の関数を呼び出す直前に 呼ばれることを目的として用意されている。 この関数は、(廃止予定の) LinuxThreads スレッド実装における、 \fBexecve\fP(2) の際にアプリケーションの他のスレッドが自動的に 終了されないという制限を解決するために設計された。 NPTL スレッド実装では、 \fBpthread_kill_other_threads_np\fP() は存在するが、 何もしない(NPTL 実装は \fBexecve\fP(2) の際に適切な動作をするので、 何もする必要がないということだ)。 .SH 関連項目 \fBexecve\fP(2), \fBpthread_cancel\fP(3), \fBpthread_setcancelstate\fP(3), \fBpthread_setcanceltype\fP(3), \fBpthreads\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。