Lines Matching defs:ret
64 int ret;
71 ret = pthread_mutex_init(mtx, &attr);
73 return ret == 0 ? thrd_success : thrd_error;
112 int ret = TryEnterCriticalSection(&mtx->mHandle) ? thrd_success : thrd_busy;
113 if ((!mtx->mRecursive) && (ret == thrd_success) && mtx->mAlreadyLocked)
116 ret = thrd_busy;
118 return ret;
307 int ret;
308 ret = pthread_cond_timedwait(cond, mtx, ts);
309 if (ret == ETIMEDOUT)
313 return ret == 0 ? thrd_success : thrd_error;