Searched refs:pshared (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_barrier.cpp | 45 int pthread_barrierattr_getpshared(const pthread_barrierattr_t* attr, int* pshared) { in pthread_barrierattr_getpshared() argument 46 *pshared = (*attr & 1) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE; in pthread_barrierattr_getpshared() 50 int pthread_barrierattr_setpshared(pthread_barrierattr_t* attr, int pshared) { in pthread_barrierattr_setpshared() argument 51 if (pshared == PTHREAD_PROCESS_SHARED) { in pthread_barrierattr_setpshared() 76 bool pshared; member 100 barrier->pshared = false; in pthread_barrier_init() 102 barrier->pshared = true; in pthread_barrier_init() 121 __futex_wait_ex(&barrier->state, barrier->pshared, RELEASE, false, nullptr); in pthread_barrier_wait() 149 __futex_wake_ex(&barrier->state, barrier->pshared, prev_wait_count); in pthread_barrier_wait() 155 __futex_wait_ex(&barrier->state, barrier->pshared, WAIT, false, nullptr); in pthread_barrier_wait() [all …]
|
D | pthread_rwlock.cpp | 77 int pshared) { in __rwlockattr_setpshared() argument 78 *attr = (*attr & ~RWLOCKATTR_PSHARED_MASK) | (pshared << RWLOCKATTR_PSHARED_SHIFT); in __rwlockattr_setpshared() 100 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t* attr, int* pshared) { in pthread_rwlockattr_getpshared() argument 102 *pshared = PTHREAD_PROCESS_SHARED; in pthread_rwlockattr_getpshared() 104 *pshared = PTHREAD_PROCESS_PRIVATE; in pthread_rwlockattr_getpshared() 109 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t* attr, int pshared) { in pthread_rwlockattr_setpshared() argument 110 switch (pshared) { in pthread_rwlockattr_setpshared() 162 bool pshared; member 233 rwlock->pshared = __rwlockattr_getpshared(attr); in pthread_rwlock_init() 251 rwlock->pending_lock.init(rwlock->pshared); in pthread_rwlock_init() [all …]
|
D | pthread_cond.cpp | 74 int pthread_condattr_getpshared(const pthread_condattr_t* attr, int* pshared) { in pthread_condattr_getpshared() argument 75 *pshared = static_cast<int>(COND_IS_SHARED(*attr)); in pthread_condattr_getpshared() 79 int pthread_condattr_setpshared(pthread_condattr_t* attr, int pshared) { in pthread_condattr_setpshared() argument 80 if (pshared != PTHREAD_PROCESS_SHARED && pshared != PTHREAD_PROCESS_PRIVATE) { in pthread_condattr_setpshared() 84 *attr |= pshared; in pthread_condattr_setpshared()
|
D | pthread_spinlock.cpp | 50 int pthread_spin_init(pthread_spinlock_t* lock_interface, int pshared) { in pthread_spin_init() argument 52 lock->lock.init(pshared); in pthread_spin_init()
|
D | semaphore.cpp | 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() argument 111 if (pshared != 0) { in sem_init()
|
D | pthread_mutex.cpp | 98 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) in pthread_mutexattr_setpshared() argument 100 switch (pshared) { in pthread_mutexattr_setpshared() 117 int pthread_mutexattr_getpshared(const pthread_mutexattr_t* attr, int* pshared) { in pthread_mutexattr_getpshared() argument 118 *pshared = (*attr & MUTEXATTR_SHARED_MASK) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE; in pthread_mutexattr_getpshared()
|
/bionic/tests/ |
D | pthread_test.cpp | 869 int pshared; in TEST() local 870 ASSERT_EQ(0, pthread_rwlockattr_getpshared(&attr, &pshared)); in TEST() 871 ASSERT_EQ(pshared_value_array[i], pshared); in TEST() 1501 int pshared; in TEST() local 1502 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST() 1503 ASSERT_EQ(PTHREAD_PROCESS_PRIVATE, pshared); in TEST() 1540 int pshared; in TEST() local 1541 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST() 1542 ASSERT_EQ(PTHREAD_PROCESS_SHARED, pshared); in TEST() 2757 int pshared; in TEST() local [all …]
|