Lines Matching refs:result
101 rt_err_t result; in pthread_cond_init() local
123 result = rt_sem_init(&cond->sem, cond_name, 0, RT_IPC_FLAG_FIFO); in pthread_cond_init()
124 if (result != RT_EOK) in pthread_cond_init()
163 rt_err_t result; in pthread_cond_destroy() local
179 result = rt_sem_trytake(&(cond->sem)); in pthread_cond_destroy()
180 if (result == EBUSY) in pthread_cond_destroy()
220 rt_err_t result; in pthread_cond_broadcast() local
230 result = rt_sem_trytake(&(cond->sem)); in pthread_cond_broadcast()
231 if (result == -RT_ETIMEOUT) in pthread_cond_broadcast()
236 else if (result == RT_EOK) in pthread_cond_broadcast()
279 rt_err_t result; in pthread_cond_signal() local
298 result = rt_sem_release(&(cond->sem)); in pthread_cond_signal()
299 if (result == RT_EOK) in pthread_cond_signal()
342 rt_err_t result = RT_EOK; in _pthread_cond_timedwait() local
437 result = thread->error; in _pthread_cond_timedwait()
445 return result; in _pthread_cond_timedwait()
478 rt_err_t result; in pthread_cond_wait() local
481 result = _pthread_cond_timedwait(cond, mutex, RT_WAITING_FOREVER); in pthread_cond_wait()
482 if (result == RT_EOK) in pthread_cond_wait()
486 else if (result == -RT_EINTR) in pthread_cond_wait()
534 rt_err_t result; in pthread_cond_timedwait() local
537 result = _pthread_cond_timedwait(cond, mutex, timeout); in pthread_cond_timedwait()
538 if (result == RT_EOK) in pthread_cond_timedwait()
542 if (result == -RT_ETIMEOUT) in pthread_cond_timedwait()