NAME

pthread_setprio, pthread_getprio - get and set thread priorities

SYNOPSIS

#include <pthread.h>

int pthread_setprio(pthread_t thread , int prio );
int pthread_getprio(pthread_t thread , int *prio );

Callable from ISR.

DESCRIPTION

The pthread_setprio() function sets the priority from the lowest value, 0 to PTHREAD_PRIO_MAX, the highest value. The pthread_getprio returns the priority of the named thread.

RETURN VALUES

Zero is returned unless the thread is invalid ESRCH or the prio is invalid EINVAL.

If either

SEE ALSO

pthread_create(), pthread_attr_init()




< Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2008 >