Home
last modified time | relevance | path

Searched refs:cnd (Results 1 – 2 of 2) sorted by relevance

/lib/libc/posix/
Dpthread.c328 struct pthread_cond *cnd = (struct pthread_cond *)malloc(sizeof(*cnd)); in pthread_cond_init() local
330 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() local
349 free(cnd); in pthread_cond_destroy()
358 struct pthread_cond *cnd; in pthread_cond_wait() local
366 cnd = *cond; in pthread_cond_wait()
[all …]
/tests/
Dpthreadtest.c16 pthread_cond_t cnd; variable
50 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 …]