Home | History | Annotate | Download | only in pthread_cond_init

Lines Matching refs:cur

102 	teststruct_t *cur, *prev;
126 cur = NULL;
131 cur = malloc(sizeof(teststruct_t));
132 if (cur == NULL) /* No memory left */
136 cur->prev = prev;
137 prev = cur;
149 ret = pthread_condattr_init(&(cur->ca[i]));
156 pthread_condattr_setclock(&(cur->ca[i]),
165 pthread_condattr_setpshared(&(cur->ca[i]),
176 cur->pca[i] = (i % 5) ? &(cur->ca[i % 4]) : NULL;
190 ret = pthread_cond_init(&(cur->cnd[i]), cur->pca[i]);
194 ret = pthread_cond_destroy(&(cur->cnd[i]));
198 ret = pthread_cond_init(&(cur->cnd[i]), cur->pca[i]);
202 ret = pthread_cond_destroy(&(cur->cnd[i]));
206 ret = pthread_cond_init(&(cur->cnd[i]), cur->pca[i]);
244 cur = prev;
245 prev = cur->prev;
247 /* Free the condvar resources in the cur element */
249 ret = pthread_cond_destroy(&(cur->cnd[i]));
254 /* Free the cond attributes resources in the cur element */
256 ret = pthread_condattr_destroy(&(cur->ca[i]));
263 free(cur);