Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_OS_SCHED_H
00017 #define ACE_OS_INCLUDE_OS_SCHED_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-all.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "ace/os_include/os_time.h"
00028
00029 #if !defined (ACE_LACKS_SCHED_H)
00030 # include <sched.h>
00031 #endif
00032
00033
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038
00039 #if !defined (__cpu_set_t_defined) || !defined (ACE_HAS_CPU_SET_T)
00040 #if defined (ACE_HAS_CPUSET_T)
00041 typedef cpuset_t cpu_set_t;
00042 #else
00043 # define ACE_CPU_SETSIZE 1024
00044 typedef struct
00045 {
00046 ACE_UINT32 bit_array_[ACE_CPU_SETSIZE / (8 * sizeof (ACE_UINT32))];
00047 } cpu_set_t;
00048 #endif
00049 #endif
00050
00051 #ifdef __cplusplus
00052 }
00053 #endif
00054
00055 #include "ace/post.h"
00056 #endif