Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 8
Unconditionally terminate the target thread
#include <pthread.h>
int pthread_abort( pthread_t thread );
- thread
- The ID of the thread that you want to terminate, which you can get
when you call
pthread_create()
or
pthread_self().
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The pthread_abort() function terminates the target thread.
Termination takes effect immediately and isn't a function of the
cancelability state of the target thread. No cancellation handlers or
thread-specific-data destructor functions are executed. Thread abortion
doesn't release any application-visible process resources, including,
but not limited to, mutexes and file descriptors. (The behavior of
POSIX calls following a call to pthread_abort() is
unspecified.)
The status of PTHREAD_ABORTED is available to any thread
joining with the target thread. The constant PTHREAD_ABORTED
expands to a constant expression, of type void *.
Its value doesn't match any pointer to an object in memory, or the values
NULL and PTHREAD_CANCELED.
The side effects of aborting a thread that's suspended during a call of
a POSIX 1003.1 function are the same as the side effects that may be seen in
a single-threaded process when a call to a POSIX 1003.1 function is
interrupted by a signal and the given function returns
EINTR. Any such side effects occur before the thread
terminates.
- EOK
- Success.
- ESRCH
- No thread with the given ID was found.
QNX Neutrino
| Safety: | |
| Cancellation point |
No |
| Interrupt handler |
No |
| Signal handler |
Yes |
| Thread |
Yes |
pthread_cancel(),
pthread_detach(),
pthread_exit(),
ThreadDestroy()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 148
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_abort.html on line 148