diff options
author | David 'Digit' Turner <digit@google.com> | 2010-03-18 14:07:42 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-03-18 14:07:42 -0700 |
commit | ee7b077abf1d99503b986489ad93374a057cb354 (patch) | |
tree | 2f424373469e9e040312951e59a9627cb17d6a8d /libc/include | |
parent | 40e6b822866ee59f7823000384321bb899416cb1 (diff) | |
download | bionic-ee7b077abf1d99503b986489ad93374a057cb354.zip bionic-ee7b077abf1d99503b986489ad93374a057cb354.tar.gz bionic-ee7b077abf1d99503b986489ad93374a057cb354.tar.bz2 |
Add pthread_condattr_init/destroy/setpshared/getpshared
Note that this does not change the implementation of conditional variables
which still use shared futexes, independent on the flags being selected.
This will be fixed in a later patch, once our system is modified to use
pthread_condattr_setpshared(attr, PTHREAD_PROCESS_SHARED) properly.
Change-Id: I935de50964cd41f97a13dbfd6626d3407b0406c3
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/pthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/include/pthread.h b/libc/include/pthread.h index 6603b3f..eb2d169 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -165,6 +165,11 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex); int pthread_mutex_trylock(pthread_mutex_t *mutex); int pthread_mutex_timedlock(pthread_mutex_t *mutex, struct timespec* ts); +int pthread_condattr_init(pthread_condattr_t *attr); +int pthread_condattr_getpshared(pthread_condattr_t *attr, int *pshared); +int pthread_condattr_setpshared(pthread_condattr_t* attr, int pshared); +int pthread_condattr_destroy(pthread_condattr_t *attr); + int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); int pthread_cond_destroy(pthread_cond_t *cond); |