The pthread_attr_setschedpolicy function

Name

pthread_attr_setschedpolicy -- 

Synopsis

#include <pthread.h>

int pthread_attr_setschedpolicy (pthread_attr_t *attr, int policy);

Description

The pthread_attr_setschedpolicy function sets the scheduling policy.

Returns

The pthread_attr_setschedpolicy function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

The value for policy must be SCHED_FIFO.