44 #if defined(_POSIX_SOURCE) 49 #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309 55 #if defined(INCLUDE_NP) 61 #define PTW32_LEVEL_MAX 3 63 #if !defined(PTW32_LEVEL) 64 #define PTW32_LEVEL PTW32_LEVEL_MAX 69 #if __GNUC__ && ! defined (__declspec) 70 # error Please upgrade your GNU compiler to one that supports __declspec. 79 #ifndef PTW32_STATIC_LIB 81 # define PTW32_DLLPORT __declspec (dllexport) 83 # define PTW32_DLLPORT __declspec (dllimport) 86 # define PTW32_DLLPORT 94 #ifndef PTW32_CONFIG_H 99 # if defined(_UWIN) || defined(__MINGW32__) 108 #if PTW32_LEVEL >= PTW32_LEVEL_MAX 110 #include "need_errno.h" 116 #if defined(__MINGW32__) || defined(_UWIN) 117 #if PTW32_LEVEL >= PTW32_LEVEL_MAX 119 # include <sys/types.h> 166 #define sched_rr_get_interval(_pid, _interval) \ 167 ( errno = ENOTSUP, (int) -1 ) 175 #undef PTW32_LEVEL_MAX
PTW32_DLLPORT int __cdecl sched_get_priority_min(int policy)
PTW32_DLLPORT int __cdecl sched_getscheduler(pid_t pid)
PTW32_DLLPORT int __cdecl sched_get_priority_max(int policy)
PTW32_DLLPORT int __cdecl sched_setscheduler(pid_t pid, int policy)
PTW32_DLLPORT int __cdecl sched_yield(void)