Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

thread_exit — abandon current thread context

Description

       The  thread_exit() function implements the machine independent prelude to a thread shutdown.  It will not
       return, and will result in a call to mi_switch(9) to schedule some other thread.

       thread_exit() arranges to free all the resources of the thread, specifically the kernel stack.

       To protect the runqueue(9), thread_exit() must be called with the sched_lock mutex held.

Name

       thread_exit — abandon current thread context

See Also

mi_switch(9), mutex(9), runqueue(9), sleep(9)

Debian                                            July 5, 2002                                    THREAD_EXIT(9)

Synopsis

#include<sys/param.h>#include<sys/proc.h>voidthread_exit(void);

See Also