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

/bionic/libc/private/
H A Dbionic_futex.h57 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { argument
58 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, NULL);
65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value, const struct timespec* timeout) { argument
66 return __futex(ftx, shared ? FUTEX_WAIT : FUTEX_WAIT_PRIVATE, value, timeout);
/bionic/libc/bionic/
H A Dsemaphore.c38 * 31-bit signed value and a 1-bit 'shared' flag
59 * for the shared flag.
66 * One bit is used for the shared flag, another one for the
86 /* return the shared bitflag from a semaphore */
162 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); local
174 while (__bionic_cmpxchg((int)(old|shared),
175 (int)(new|shared),
186 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); local
198 while (__bionic_cmpxchg((int)(old|shared),
199 (int)(new|shared),
216 unsigned int shared = (*pvalue & SEMCOUNT_SHARED_MASK); local
245 unsigned shared; local
266 unsigned int shared; local
334 unsigned int shared; local
[all...]
H A Dpthread_mutex.cpp50 * 13 shared process-shared flag
120 /* Mutex shared bit flag
122 * This flag is set to indicate that the mutex is shared among processes.
124 * (non-shared operations are much faster).
200 * 4 shared process-shared flag
240 /* process-shared mutexes are not supported at the moment */
250 /* our current implementation of pthread actually supports shared
308 static inline void _normal_lock(pthread_mutex_t* mutex, int shared) { argument
347 _normal_unlock(pthread_mutex_t* mutex, int shared) argument
449 int mvalue, mtype, tid, shared; local
531 int mvalue, mtype, tid, shared; local
583 int mvalue, mtype, tid, shared; local
627 int shared = (mvalue & MUTEX_SHARED_MASK); local
[all...]

Completed in 63 milliseconds