Home
last modified time | relevance | path

Searched refs:pshared (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/bionic/
Dpthread_cond.cpp68 int pthread_condattr_getpshared(const pthread_condattr_t* attr, int* pshared) { in pthread_condattr_getpshared() argument
69 *pshared = static_cast<int>(COND_IS_SHARED(*attr)); in pthread_condattr_getpshared()
73 int pthread_condattr_setpshared(pthread_condattr_t* attr, int pshared) { in pthread_condattr_setpshared() argument
74 if (pshared != PTHREAD_PROCESS_SHARED && pshared != PTHREAD_PROCESS_PRIVATE) { in pthread_condattr_setpshared()
78 *attr |= pshared; in pthread_condattr_setpshared()
Dpthread_rwlock.cpp91 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t* attr, int pshared) { in pthread_rwlockattr_setpshared() argument
92 switch (pshared) { in pthread_rwlockattr_setpshared()
95 *attr = pshared; in pthread_rwlockattr_setpshared()
102 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t* attr, int* pshared) { in pthread_rwlockattr_getpshared() argument
103 *pshared = *attr; in pthread_rwlockattr_getpshared()
Dpthread_mutex.cpp242 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) in pthread_mutexattr_setpshared() argument
244 switch (pshared) { in pthread_mutexattr_setpshared()
261 int pthread_mutexattr_getpshared(const pthread_mutexattr_t* attr, int* pshared) { in pthread_mutexattr_getpshared() argument
262 *pshared = (*attr & MUTEXATTR_SHARED_MASK) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE; in pthread_mutexattr_getpshared()
Dsemaphore.c90 int sem_init(sem_t *sem, int pshared, unsigned int value) in sem_init() argument
104 if (pshared != 0) in sem_init()
/bionic/libc/include/
Dsemaphore.h44 extern int sem_init(sem_t *sem, int pshared, unsigned int value);
/bionic/tests/
Dpthread_test.cpp752 int pshared; in TEST() local
753 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST()
754 ASSERT_EQ(PTHREAD_PROCESS_PRIVATE, pshared); in TEST()
791 int pshared; in TEST() local
792 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST()
793 ASSERT_EQ(PTHREAD_PROCESS_SHARED, pshared); in TEST()