Home
last modified time | relevance | path

Searched refs:z_pthread_spinlock (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-2.7.6/lib/posix/
Dpthread_mutex.c12 struct k_spinlock z_pthread_spinlock; variable
28 k_spinlock_key_t key = k_spin_lock(&z_pthread_spinlock); in acquire_mutex()
34 k_spin_unlock(&z_pthread_spinlock, key); in acquire_mutex()
47 k_spin_unlock(&z_pthread_spinlock, key); in acquire_mutex()
52 k_spin_unlock(&z_pthread_spinlock, key); in acquire_mutex()
56 rc = z_pend_curr(&z_pthread_spinlock, key, &m->wait_q, timeout); in acquire_mutex()
127 k_spinlock_key_t key = k_spin_lock(&z_pthread_spinlock); in pthread_mutex_unlock()
132 k_spin_unlock(&z_pthread_spinlock, key); in pthread_mutex_unlock()
137 k_spin_unlock(&z_pthread_spinlock, key); in pthread_mutex_unlock()
150 z_reschedule(&z_pthread_spinlock, key); in pthread_mutex_unlock()
[all …]
Dpthread_barrier.c12 extern struct k_spinlock z_pthread_spinlock;
16 k_spinlock_key_t key = k_spin_lock(&z_pthread_spinlock); in pthread_barrier_wait()
27 z_reschedule(&z_pthread_spinlock, key); in pthread_barrier_wait()
30 (void) z_pend_curr(&z_pthread_spinlock, key, &b->wait_q, K_FOREVER); in pthread_barrier_wait()
Dpthread_cond.c12 extern struct k_spinlock z_pthread_spinlock;
22 k_spinlock_key_t key = k_spin_lock(&z_pthread_spinlock); in cond_wait()
27 ret = z_sched_wait(&z_pthread_spinlock, key, &cv->wait_q, timeout, NULL); in cond_wait()