OAR

RTEMS 4.0.0 On-Line Library


pthread_create

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

1.4.17: pthread_create

CALLING SEQUENCE:

#include <pthread.h>

int pthread_create(
  pthread_t             *thread,
  const pthread_attr_t  *attr,
  void                 (*start_routine)( void * ),
  void                  *arg
);

STATUS CODES:

EINVAL
The attribute set is not initialized.
EINVAL
The user specified a stack address and the size of the area was not large enough to meet this processor's minimum stack requirements.
EINVAL
The specified scheduler inheritance policy was invalid.
ENOTSUP
The specified contention scope was PTHREAD_SCOPE_PROCESS.
EINVAL
The specified thread priority was invalid.
EINVAL
The specified scheduling policy was invalid.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified replenishment period is less than the initial budget.
EINVAL
The scheduling policy was SCHED_SPORADIC and the specified low priority is invalid.
EAGAIN
The system lacked the necessary resources to create another thread, or the self imposed limit on the total number of threads in a process PTHREAD_THREAD_MAX would be exceeded.
EINVAL
Invalid argument passed.

DESCRIPTION:

NOTES:


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-1998 OAR Corporation