Home
last modified time | relevance | path

Searched refs:_b_lock (Results 1 – 10 of 10) sorted by relevance

/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_barrier_wait.c11 while ((v=a_cas(&b->_b_lock, 0, limit))) in pshared_barrier_wait()
12 __wait(&b->_b_lock, &b->_b_waiters, v, 0); in pshared_barrier_wait()
20 a_store(&b->_b_lock, 0); in pshared_barrier_wait()
21 if (b->_b_waiters) __wake(&b->_b_lock, 1, 0); in pshared_barrier_wait()
39 v = b->_b_lock; in pshared_barrier_wait()
41 } while (a_cas(&b->_b_lock, v, v==INT_MIN+1 ? 0 : v-1) != v); in pshared_barrier_wait()
45 __wake(&b->_b_lock, 1, 0); in pshared_barrier_wait()
72 while (a_swap(&b->_b_lock, 1)) in pthread_barrier_wait()
73 __wait(&b->_b_lock, &b->_b_waiters, 1, 1); in pthread_barrier_wait()
81 a_store(&b->_b_lock, 0); in pthread_barrier_wait()
[all …]
/third_party/musl/src/thread/
Dpthread_barrier_wait.c11 while ((v=a_cas(&b->_b_lock, 0, limit))) in pshared_barrier_wait()
12 __wait(&b->_b_lock, &b->_b_waiters, v, 0); in pshared_barrier_wait()
20 a_store(&b->_b_lock, 0); in pshared_barrier_wait()
21 if (b->_b_waiters) __wake(&b->_b_lock, 1, 0); in pshared_barrier_wait()
39 v = b->_b_lock; in pshared_barrier_wait()
41 } while (a_cas(&b->_b_lock, v, v==INT_MIN+1 ? 0 : v-1) != v); in pshared_barrier_wait()
45 __wake(&b->_b_lock, 1, 0); in pshared_barrier_wait()
72 while (a_swap(&b->_b_lock, 1)) in pthread_barrier_wait()
73 __wait(&b->_b_lock, &b->_b_waiters, 1, 1); in pthread_barrier_wait()
81 a_store(&b->_b_lock, 0); in pthread_barrier_wait()
[all …]
Dpthread_barrier_destroy.c6 if (b->_b_lock) { in pthread_barrier_destroy()
8 a_or(&b->_b_lock, INT_MIN); in pthread_barrier_destroy()
9 while ((v = b->_b_lock) & INT_MAX) in pthread_barrier_destroy()
10 __wait(&b->_b_lock, 0, v, 0); in pthread_barrier_destroy()
/third_party/musl/porting/uniproton/kernel/src/internal/
Dpthread_impl.h48 #define _b_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_m/kernel/src/internal/
Dpthread_impl.h48 #define _b_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_a/kernel/src/internal/
Dpthread_impl.h43 #define _b_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_m/user/src/internal/
Dpthread_impl.h95 #define _b_lock __u.__vi[0] macro
/third_party/musl/porting/liteos_a/user/src/internal/
Dpthread_impl.h105 #define _b_lock __u.__vi[0] macro
/third_party/musl/porting/linux/user/src/internal/
Dpthread_impl.h155 #define _b_lock __u.__vi[0] macro
/third_party/musl/src/internal/
Dpthread_impl.h135 #define _b_lock __u.__vi[0] macro