next up previous contents index
Next: 18.3.15 pthread_cleanup_push: Push a Up: 18.3 POSIX Threads Reference Previous: 18.3.13 pthread_condattr_init: Initialize a

18.3.14 pthread_cancel: Cancel a running thread

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_cancel(pthread_t tid);

DESCRIPTION

Cancel the thread specified by tid. The thread is marked for cancellation, but because of scheduling and device delays, might not be acted upon until some future time.

PARAMETERS

tid
The thread identifier of the thread to be canceled.

RETURNS

Returns zero on success. EINVAL if tid specifies an invalid thread.

RELATED INFORMATION

pthread_create, pthread_sleep



University of Utah Flux Research Group