Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
394c23c6
Commit
394c23c6
authored
Mar 05, 2012
by
Rafaël Carré
Browse files
Add pthread_condattr_(g,s)etpshared() for 2.1
They are used by pthread-rwlocks.c
parent
2503f5dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/pthread-condattr.c
View file @
394c23c6
...
...
@@ -47,3 +47,24 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
return
0
;
}
int
pthread_condattr_getpshared
(
pthread_condattr_t
*
attr
,
int
*
pshared
)
{
if
(
attr
==
NULL
||
pshared
==
NULL
)
return
EINVAL
;
*
pshared
=
*
attr
;
return
0
;
}
int
pthread_condattr_setpshared
(
pthread_condattr_t
*
attr
,
int
pshared
)
{
if
(
attr
==
NULL
)
return
EINVAL
;
if
(
pshared
!=
PTHREAD_PROCESS_SHARED
&&
pshared
!=
PTHREAD_PROCESS_PRIVATE
)
return
EINVAL
;
*
attr
=
pshared
;
return
0
;
}
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