Lines Matching refs:ret
49 int ret;
51 ret = pthread_cond_broadcast(cnd);
52 if (ret == 0)
68 int ret;
70 ret = pthread_cond_init(cnd, NULL);
71 if (ret == 0)
79 int ret;
81 ret = pthread_cond_signal(cnd);
82 if (ret == 0)
93 int ret;
95 ret = pthread_cond_timedwait(cnd, mtx, ts);
96 if (ret == 0)
98 if (ret == ETIMEDOUT)
107 int ret;
109 ret = pthread_cond_wait(cnd, mtx);
110 if (ret == 0)
161 int ret;
163 ret = pthread_mutex_timedlock(mtx, abstime);
164 if (ret == ETIMEDOUT)
166 else if (ret != 0)
174 int ret;
176 ret = pthread_mutex_trylock(mtx);
177 if (ret == 0)
179 else if (ret == EBUSY)
196 int ret;
198 ret = pthread_create(thr, NULL, (void *(*)(void *))func, arg);
199 if (ret == 0)
201 else if (ret == -1 && errno == EAGAIN)
252 int ret;
253 if ((ret = nanosleep(rqtp, rmtp)) == 0)
255 if (ret == -1 && errno == EINTR)