Searched refs:lock (Results 1 – 13 of 13) sorted by relevance
27 static struct rt_spinlock lock; variable33 rt_spin_lock(&lock); in thread_high_entry()37 rt_spin_unlock(&lock); in thread_high_entry()44 rt_spin_lock(&lock); in thread_low_entry()48 rt_spin_unlock(&lock); in thread_low_entry()74 rt_spin_lock_init(&lock); in utest_tc_init()
27 static struct rt_spinlock lock; variable34 rt_spin_lock(&lock); in rt_thread_entry1()38 rt_spin_unlock(&lock); in rt_thread_entry1()47 rt_spin_lock(&lock); in rt_thread_entry2()51 rt_spin_unlock(&lock); in rt_thread_entry2()78 rt_spin_lock_init(&lock); in utest_tc_init()
27 static struct rt_spinlock lock; variable89 rt_spin_lock(&lock); in thread_bind_affinity_tc()91 rt_spin_unlock(&lock); in thread_bind_affinity_tc()97 rt_spin_lock_init(&lock); in utest_tc_init()
31 static struct rt_spinlock lock; variable111 rt_spin_lock_init(&lock); in utest_tc_init()
31 static struct rt_spinlock lock; variable118 rt_spin_lock_init(&lock); in utest_tc_init()
23 pthread_mutex_t lock; /* mutex ensuring exclusive access to buffer */ member33 pthread_mutex_init(&b->lock, NULL); in init()43 pthread_mutex_lock(&b->lock); in put()46 pthread_cond_wait(&b->notfull, &b->lock); in put()55 pthread_mutex_unlock(&b->lock); in put()63 pthread_mutex_lock(&b->lock); in get()66 pthread_cond_wait(&b->notempty, &b->lock); in get()74 pthread_mutex_unlock(&b->lock); in get()
28 pthread_mutex_t lock; variable42 pthread_mutex_init(&lock, NULL); in libc_ex3()92 while (pthread_mutex_trylock(&lock) == EBUSY) in search()97 pthread_mutex_unlock(&lock); in search()132 while (pthread_mutex_trylock(&lock) == EBUSY) in search()
15 static struct rt_spinlock lock; variable33 rt_spin_lock(&lock); in utest_getc()37 rt_spin_unlock(&lock); in utest_getc()41 rt_spin_unlock(&lock); in utest_getc()169 rt_spin_lock_init(&lock); in utest_tc_init()
15 static struct rt_spinlock lock; variable101 rt_spin_lock_init(&lock); in utest_tc_init()
63 rt_mutex_take(perf->lock,RT_WAITING_FOREVER); in rt_perf_irq_latency()66 rt_mutex_release(perf->lock); in rt_perf_irq_latency()
48 rt_mutex_take(perf->lock,RT_WAITING_FOREVER); in perf_thread_event2()51 rt_mutex_release(perf->lock); in perf_thread_event2()
33 rt_mutex_t lock; member
149 perf_data->lock = rt_mutex_create("perf", RT_IPC_FLAG_PRIO); in rt_perf_all_test()162 rt_mutex_delete(perf_data->lock); in rt_perf_all_test()
Completed in 13 milliseconds