#include <oskit/threads/pthread.h>int pthread_cancel(pthread_t tid);
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.
- tid
- The thread identifier of the thread to be canceled.
Returns zero on success. EINVAL if tid specifies an invalid thread.
pthread_create, pthread_sleep