OAR

RTEMS 4.5.1-pre3 On-Line Library


Thread Manager pthread_detach - Detach a Thread

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.19: pthread_detach - Detach a Thread

CALLING SEQUENCE:

#include <pthread.h>

int pthread_detach(
  pthread_t thread
);

STATUS CODES:

ESRCH
The thread specified is invalid.
EINVAL
The thread specified is not a joinable thread.

DESCRIPTION:

The pthread_detach routine is used to to indicate that storage for thread can be reclaimed when the thread terminates without another thread joinging with it.

NOTES:

If any threads have previously joined with the specified thread, then they will remain joined with that thread. Any subsequent calls to pthread_join on the specified thread will fail.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2000 OAR Corporation