Searched defs:shared (Results 1 - 3 of 3) sorted by relevance

/bionic/libc/private/
H A Dbionic_futex.h60 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { argument
61 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, NULL, 0);
68 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, argument
70 return __futex(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE) |
/bionic/libc/bionic/
H A Dsemaphore.cpp48 // 31-bit signed value and a 1-bit 'shared' flag
67 // for the shared flag.
98 // Return the shared bitflag from a semaphore counter.
146 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; local
157 SEMCOUNT_DECREMENT(old_value) | shared));
166 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; local
177 SEMCOUNT_DECREMENT(old_value) | shared));
190 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; local
205 new_value = SEMCOUNT_ONE | shared;
207 new_value = SEMCOUNT_INCREMENT(old_value) | shared;
217 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); local
251 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); local
272 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); local
[all...]
H A Dpthread_mutex.cpp51 * 4 shared process-shared flag
90 /* process-shared mutexes are not supported at the moment */
100 /* our current implementation of pthread actually supports shared
121 * 13 shared process-shared flag
196 /* Mutex shared bit flag
198 * This flag is set to indicate that the mutex is shared among processes.
200 * (non-shared operations are much faster).
276 uint16_t shared) {
275 __pthread_normal_mutex_trylock(pthread_mutex_internal_t* mutex, uint16_t shared) argument
300 __pthread_normal_mutex_lock(pthread_mutex_internal_t* mutex, uint16_t shared, bool use_realtime_clock, const timespec* abs_timeout_or_null) argument
339 __pthread_normal_mutex_unlock(pthread_mutex_internal_t* mutex, uint16_t shared) argument
395 __recursive_or_errorcheck_mutex_wait( pthread_mutex_internal_t* mutex, uint16_t shared, uint16_t old_state, bool use_realtime_clock, const timespec* abs_timeout) argument
426 uint16_t shared = (old_state & MUTEX_SHARED_MASK); local
514 uint16_t shared = (old_state & MUTEX_SHARED_MASK); local
535 uint16_t shared = (old_state & MUTEX_SHARED_MASK); local
579 uint16_t shared = (old_state & MUTEX_SHARED_MASK); local
[all...]

Completed in 3551 milliseconds