Searched refs:pshared (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_barrier.cpp | 45 int pthread_barrierattr_getpshared(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 | 76 …ways_inline __always_inline void __rwlockattr_setpshared(pthread_rwlockattr_t* attr, int pshared) { in __rwlockattr_setpshared() argument 77 *attr = (*attr & ~RWLOCKATTR_PSHARED_MASK) | (pshared << RWLOCKATTR_PSHARED_SHIFT); in __rwlockattr_setpshared() 99 int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t* attr, int* pshared) { in pthread_rwlockattr_getpshared() argument 101 *pshared = PTHREAD_PROCESS_SHARED; in pthread_rwlockattr_getpshared() 103 *pshared = PTHREAD_PROCESS_PRIVATE; in pthread_rwlockattr_getpshared() 108 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t* attr, int pshared) { in pthread_rwlockattr_setpshared() argument 109 switch (pshared) { in pthread_rwlockattr_setpshared() 161 bool pshared; member 232 rwlock->pshared = __rwlockattr_getpshared(attr); in pthread_rwlock_init() 250 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 | 104 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() argument 112 if (pshared != 0) { in sem_init()
|
D | pthread_mutex.cpp | 92 int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) in pthread_mutexattr_setpshared() argument 94 switch (pshared) { in pthread_mutexattr_setpshared() 111 int pthread_mutexattr_getpshared(const pthread_mutexattr_t* attr, int* pshared) { in pthread_mutexattr_getpshared() argument 112 *pshared = (*attr & MUTEXATTR_SHARED_MASK) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE; in pthread_mutexattr_getpshared()
|
/bionic/libc/include/ |
D | pthread.h | 233 int pthread_barrierattr_getpshared(pthread_barrierattr_t* attr, int* pshared) __nonnull((1, 2)); 234 int pthread_barrierattr_setpshared(pthread_barrierattr_t* attr, int pshared) __nonnull((1));
|
/bionic/tests/ |
D | pthread_test.cpp | 647 int pshared; in TEST() local 648 ASSERT_EQ(0, pthread_rwlockattr_getpshared(&attr, &pshared)); in TEST() 649 ASSERT_EQ(pshared_value_array[i], pshared); in TEST() 1069 int pshared; in TEST() local 1070 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST() 1071 ASSERT_EQ(PTHREAD_PROCESS_PRIVATE, pshared); in TEST() 1108 int pshared; in TEST() local 1109 ASSERT_EQ(0, pthread_condattr_getpshared(&attr, &pshared)); in TEST() 1110 ASSERT_EQ(PTHREAD_PROCESS_SHARED, pshared); in TEST() 1812 int pshared; in TEST() local [all …]
|