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 or the prio is wrong. In both cases the value ESRCH is returned to signify the error.

If either

SEE ALSO

pthread_create(), pthread_attr_init()

Home page (Kernel)


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