Lines Matching defs:ret
74 int ret;
76 if ((ret = pthread_mutex_init(mutex, NULL)) != 0) {
78 strerror_r(ret, buf, buf_len));
84 int ret;
86 if ((ret = pthread_mutex_lock(mutex)) != 0) {
88 strerror_r(ret, buf, buf_len));
94 int ret;
96 if ((ret = pthread_mutex_unlock(mutex)) != 0) {
98 strerror_r(ret, buf, buf_len));
104 int ret;
106 if ((ret = pthread_cond_init(cond, NULL)) != 0) {
108 strerror_r(ret, buf, buf_len));
115 int ret;
117 if ((ret = pthread_cond_wait(cond, mutex)) != 0) {
119 strerror_r(ret, buf, buf_len));
125 int ret;
127 if ((ret = pthread_cond_signal(cond)) != 0) {
129 strerror_r(ret, buf, buf_len));
138 int ret;
151 if ((ret = pthread_cond_timedwait(cond, mutex, &ts)) != ETIMEDOUT) {
189 int ret;
191 if ((ret = pthread_attr_init(&attr)) != 0) {
193 strerror_r(ret, buf, buf_len));
195 if ((ret = pthread_attr_setdetachstate(&attr,
199 strerror_r(ret, buf, buf_len));
201 if ((ret = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) != 0) {
203 strerror_r(ret, buf, buf_len));
206 if ((ret = pthread_create(&child_tid, &attr, run, NULL)) != 0) {
208 strerror_r(ret, buf, buf_len));