Lines Matching refs:result
83 int result;
89 result = pthread_mutex_init (&pmutex->lock, NULL);
91 if (result == ENOMEM || result == EAGAIN)
98 PTHREAD_CHECK ("pthread_mutex_init", result);
109 int result;
117 result = pthread_mutex_init (&pmutex->lock, &mutexattr);
120 if (result == ENOMEM || result == EAGAIN)
127 PTHREAD_CHECK ("pthread_mutex_init", result);
176 int result;
188 result = pthread_cond_init (&pcond->cond, &attr);
191 if (result == EAGAIN || result == ENOMEM)
198 PTHREAD_CHECK ("pthread_cond_init", result);
225 int result;
248 result = pthread_cond_timedwait (&cond->cond, &mutex->lock, &end_time);
250 if (result != ETIMEDOUT)
252 PTHREAD_CHECK ("pthread_cond_timedwait", result);
256 return result != ETIMEDOUT;