Lines Matching refs:cnd
328 struct pthread_cond *cnd = (struct pthread_cond *)malloc(sizeof(*cnd));
330 if (cnd == NULL) {
334 CoreMutex_Init(&cnd->mtx);
335 cnd->enter = 0;
336 cnd->exit = 0;
338 *cond = cnd;
346 struct pthread_cond *cnd = *cond;
349 free(cnd);
358 struct pthread_cond *cnd;
366 cnd = *cond;
374 CoreMutex_Lock(&cnd->mtx);
375 level = cnd->enter;
376 cnd->enter++;
377 CoreMutex_Unlock(&cnd->mtx);
379 while (level >= cnd->exit) {
398 struct pthread_cond *cnd;
407 cnd = *cond;
415 CoreMutex_Lock(&cnd->mtx);
416 level = cnd->enter;
417 cnd->enter++;
418 CoreMutex_Unlock(&cnd->mtx);
420 while (level >= cnd->exit) {
442 struct pthread_cond *cnd;
449 cnd = *cond;
451 CoreMutex_Lock(&cnd->mtx);
452 cnd->exit++;
453 CoreMutex_Unlock(&cnd->mtx);
461 struct pthread_cond *cnd;
468 cnd = *cond;
470 CoreMutex_Lock(&cnd->mtx);
471 cnd->exit = cnd->enter;
472 CoreMutex_Unlock(&cnd->mtx);