*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> thread_exit (9)              
Title
Content
Arch
Section
 

THREAD_EXIT(9)

Contents


NAME    [Toc]    [Back]

     thread_exit -- abandon current thread context

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/proc.h>

     void
     thread_exit(void);

DESCRIPTION    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

      
      
     mi_switch(9), msleep(9), mutex(9), runqueue(9)


FreeBSD 5.2.1			 July 5, 2002			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
glccontext IRIX make a context current to a thread
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
glciscontext IRIX test whether a context ID is the current GLC context
cpu_throw FreeBSD switch to another thread context
cpu_switch FreeBSD switch to another thread context
mi_switch FreeBSD switch to another thread context
getcontext FreeBSD get and set user thread context
ucontext FreeBSD user thread context
setcontext FreeBSD get and set user thread context
pthread_switch_delete_np FreeBSD thread context switches debugging primitives
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service