Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
39416caf
Commit
39416caf
authored
Oct 28, 2015
by
yoogx
Browse files
* Adjust definitions of SMP variables for RTEMS 4.11
parent
53b88f72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/po_hi_task.c
View file @
39416caf
...
...
@@ -21,6 +21,10 @@
#endif
#endif
#if defined (RTEMS_POSIX) || defined (RTEMS_PURE)
#include
<sys/cpuset.h>
#endif
#if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX)
#if defined (__CYGWIN__) || defined (__MINGW32__)
#else
...
...
@@ -428,9 +432,9 @@ rtems_id __po_hi_rtems_create_thread (__po_hi_priority_t priority,
cpu_set_t
cpuset
;
CPU_ZERO
(
&
cpuset
);
CPU_SET
(
process
or_i
ndex
,
&
cpuset
);
CPU_SET
(
c
or
e
_i
d
,
&
cpuset
);
if
(
rtems_task_set_affinity
(
task_
id
,
sizeof
(
cpuset
),
&
cpuset
)
!=
RTEMS_SUCCESSFUL
)
if
(
rtems_task_set_affinity
(
r
id
,
sizeof
(
cpuset
),
&
cpuset
)
!=
RTEMS_SUCCESSFUL
)
{
__DEBUGMSG
(
"ERROR setting thread affinity
\n
"
);
return
__PO_HI_ERROR_CREATE_TASK
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment