Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
87264442
Commit
87264442
authored
Nov 13, 2014
by
yoogx
Browse files
* Hack for OS X applied only for OS X
parent
ceb27453
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/po_hi_gqueue.c
View file @
87264442
...
...
@@ -135,7 +135,10 @@ void __po_hi_gqueue_init (__po_hi_task_id id,
__DEBUGMSG
(
"MUTEX_INIT %d %d
\n
"
,
id
,
err
);
#if defined (POSIX) || defined (XENO_POSIX)
// XXX disabled for OS X
// err = pthread_mutexattr_setpshared(&__po_hi_gqueues_mutexes_attr[id],PTHREAD_PROCESS_SHARED);
#ifndef __MACH__ // OS X bugs on this attribute
err
=
pthread_mutexattr_setpshared
(
&
__po_hi_gqueues_mutexes_attr
[
id
],
PTHREAD_PROCESS_SHARED
);
#endif
__DEBUGMSG
(
"MUTEX_INIT %d
\n
"
,
err
);
#endif
err
=
pthread_mutex_init
(
&
__po_hi_gqueues_mutexes
[
id
],
&
__po_hi_gqueues_mutexes_attr
[
id
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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