Multithreaded Programming Guide

Terminate a Thread

thr_exit(3T)

Use thr_exit() to terminate a thread.

#include <thread.h>

void thr_exit(void *status);