diff options
Diffstat (limited to 'PACE/pace/sched.h')
-rw-r--r-- | PACE/pace/sched.h | 107 |
1 files changed, 6 insertions, 101 deletions
diff --git a/PACE/pace/sched.h b/PACE/pace/sched.h index 083e3a3f05d..747cd8f561b 100644 --- a/PACE/pace/sched.h +++ b/PACE/pace/sched.h @@ -13,112 +13,17 @@ * * ============================================================================ */ -#ifndef PACE_SCHED_H -#define PACE_SCHED_H +#ifndef PACE_SCHED_H_INDIRECT +#define PACE_SCHED_H_INDIRECT #include "pace/config/defines.h" -#if (PACE_HAS_POSIX) +#if defined (PACE_HAS_POSIX) # include "pace/posix/sched.h" -#elif (PACE_VXWORKS) +#elif defined (PACE_VXWORKS) # include "pace/vxworks/sched.h" -#elif (PACE_WIN32) +#elif defined (PACE_WIN32) # include "pace/win32/sched.h" #endif -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function sched_get_priority_max. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_max (int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_get_priority_min. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_min (int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_getparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_rr_get_interval. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_setparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_getscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_setscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_yield. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_yield (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/sched.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/sched.inl" -# elif (PACE_WIN32) -# include "pace/win32/sched.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SCHED_H */ +#endif /* PACE_SCHED_H_INDIRECT */ |