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
bc9572e2
Commit
bc9572e2
authored
Jan 24, 2016
by
yoogx
Browse files
* Correctly set the stack size for POSIX/RTEMS
For issue
#9
parent
8812df0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/po_hi_task.c
View file @
bc9572e2
...
...
@@ -337,6 +337,13 @@ pthread_t __po_hi_posix_create_thread (__po_hi_priority_t priority,
{
return
((
pthread_t
)
__PO_HI_ERROR_PTHREAD_ATTR
);
}
#elif defined (RTEMS_POSIX)
if
(
pthread_attr_setscope
(
&
attr
,
PTHREAD_SCOPE_PROCESS
)
!=
0
)
{
return
((
pthread_t
)
__PO_HI_ERROR_PTHREAD_ATTR
);
}
#endif
if
(
stack_size
!=
0
)
{
if
(
pthread_attr_setstacksize
(
&
attr
,
stack_size
)
!=
0
)
...
...
@@ -344,12 +351,6 @@ pthread_t __po_hi_posix_create_thread (__po_hi_priority_t priority,
return
((
pthread_t
)
__PO_HI_ERROR_PTHREAD_ATTR
);
}
}
#elif defined (RTEMS_POSIX)
if
(
pthread_attr_setscope
(
&
attr
,
PTHREAD_SCOPE_PROCESS
)
!=
0
)
{
return
((
pthread_t
)
__PO_HI_ERROR_PTHREAD_ATTR
);
}
#endif
if
(
pthread_create
(
&
tid
,
&
attr
,
(
void
*
(
*
)(
void
*
))
start_routine
,
arg
)
!=
0
)
{
...
...
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