Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
394c23c6
Commit
394c23c6
authored
Mar 05, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
vlc-android/jni/pthread-condattr.c
vlc-android/jni/pthread-condattr.c
+21
-0
No files found.
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
Markdown
is supported
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