sched.h
#ifndef _SCHED_H
#define _SCHED_H 1
#include
#include
#define __need_timespec
#include
#include
#define sched_priority __sched_priority
__BEGIN_DECLS
extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
__THROW;
extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
extern int sched_setscheduler (__pid_t __pid, int __policy,
__const struct sched_param *__param) __THROW;
extern int sched_getscheduler (__pid_t __pid) __THROW;
extern int sched_yield (void) __THROW;
extern int sched_get_priority_max (int __algorithm) __THROW;
extern int sched_get_priority_min (int __algorithm) __THROW;
extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
#ifdef __USE_GNU
#define CPU_SETSIZE __CPU_SETSIZE
#define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp)
#define CPU_CLR(cpu, cpusetp) __CPU_CLR (cpu, cpusetp)
#define CPU_ISSET(cpu, cpusetp) __CPU_ISSET (cpu, cpusetp)
#define CPU_ZERO(cpusetp) __CPU_ZERO (cpusetp)
extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
__const cpu_set_t *__cpuset) __THROW;
extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
cpu_set_t *__cpuset) __THROW;
#endif
__END_DECLS
#endif
|
|