Home
last modified time | relevance | path

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

/examples/libc/
A Dex7.c35 event_t foo; in test_thread() local
41 pthread_cond_init(&foo.cond, NULL); in test_thread()
42 pthread_mutex_init(&foo.mutex, NULL); in test_thread()
43 foo.flag = 0; in test_thread()
53 pthread_mutex_lock(&foo.mutex); in test_thread()
54 while (foo.flag == 0 && status != ETIMEDOUT) { in test_thread()
55 status = pthread_cond_timedwait(&foo.cond, &foo.mutex, &time); in test_thread()
57 pthread_mutex_unlock(&foo.mutex); in test_thread()

Completed in 4 milliseconds