Searched refs:cnd (Results 1 – 2 of 2) sorted by relevance
328 struct pthread_cond *cnd = (struct pthread_cond *)malloc(sizeof(*cnd)); in pthread_cond_init() local330 if (cnd == NULL) { in pthread_cond_init()334 CoreMutex_Init(&cnd->mtx); in pthread_cond_init()335 cnd->enter = 0; in pthread_cond_init()336 cnd->exit = 0; in pthread_cond_init()338 *cond = cnd; in pthread_cond_init()346 struct pthread_cond *cnd = *cond; in pthread_cond_destroy() local349 free(cnd); in pthread_cond_destroy()358 struct pthread_cond *cnd; in pthread_cond_wait() local366 cnd = *cond; in pthread_cond_wait()[all …]
16 pthread_cond_t cnd; variable50 status = pthread_cond_wait(&cnd, NULL); in thread_cond()52 status = pthread_cond_signal(&cnd); in thread_cond()119 status = pthread_cond_init(&cnd, NULL); in main()121 status = pthread_cond_signal(&cnd); in main()123 status = pthread_cond_wait(&cnd, NULL); in main()125 status = pthread_cond_destroy(&cnd); in main()130 status = pthread_cond_init(&cnd, NULL); in main()133 status = pthread_cond_signal(&cnd); in main()135 status = pthread_cond_wait(&cnd, NULL); in main()[all …]