4.115
Last change
on this file since 5c332349 was
5c332349,
checked in by Jennifer Averett <jennifer.averett@…>, on 03/07/14 at 15:06:57
|
Remove trailing whitespace in previous patches
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/cpuset.h |
---|
3 | * |
---|
4 | * @brief Information About the CPU Set |
---|
5 | * |
---|
6 | * This include file contains all information about the thread |
---|
7 | * CPU Set. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 2014. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_SCORE_CPUSET_H |
---|
20 | #define _RTEMS_SCORE_CPUSET_H |
---|
21 | |
---|
22 | #include <rtems/score/basedefs.h> |
---|
23 | |
---|
24 | #ifdef __cplusplus |
---|
25 | extern "C" { |
---|
26 | #endif |
---|
27 | |
---|
28 | #ifdef __RTEMS_HAVE_SYS_CPUSET_H__ |
---|
29 | |
---|
30 | /** |
---|
31 | * @defgroup ScoreCpuset |
---|
32 | * |
---|
33 | * @ingroup Score |
---|
34 | * |
---|
35 | * This handler encapsulates functionality which is used in the management |
---|
36 | * of thread's CPU set. |
---|
37 | */ |
---|
38 | /**@{*/ |
---|
39 | |
---|
40 | /** |
---|
41 | * The following defines the control block used to manage the cpuset. |
---|
42 | * The names do not include affinity in the front in case the set is |
---|
43 | * ever used for something other than affinity. The usage in thread |
---|
44 | * uses the attribute affinity such that accesses will read |
---|
45 | * thread->affinity.set. |
---|
46 | */ |
---|
47 | typedef struct { |
---|
48 | /** This is the size of the set */ |
---|
49 | size_t setsize; |
---|
50 | /** This is the preallocated space to store the set */ |
---|
51 | cpu_set_t preallocated; |
---|
52 | /** This is a pointer to the set in use */ |
---|
53 | cpu_set_t *set; |
---|
54 | } CPU_set_Control; |
---|
55 | |
---|
56 | #endif |
---|
57 | |
---|
58 | /**@}*/ |
---|
59 | |
---|
60 | #ifdef __cplusplus |
---|
61 | } |
---|
62 | #endif |
---|
63 | #endif |
---|
64 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.