Home
last modified time | relevance | path

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

/external/valgrind/drd/tests/
Dsem_open.c19 static sem_t* s_sem; variable
63 s_sem = sem_open(semaphore_name, O_CREAT | O_EXCL, 0600, 1); in main()
64 if (s_sem == SEM_FAILED) in main()
90 if (s_do_mutual_exclusion) sem_wait(s_sem); in main()
92 if (s_do_mutual_exclusion) sem_post(s_sem); in main()
100 sem_close(s_sem); in main()
114 if (s_do_mutual_exclusion) sem_wait(s_sem); in thread_func()
116 if (s_do_mutual_exclusion) sem_post(s_sem); in thread_func()
Dsem_as_mutex.c19 static sem_t s_sem; variable
56 sem_init(&s_sem, 0, 1); in main()
77 if (s_do_mutual_exclusion) sem_wait(&s_sem); in main()
79 if (s_do_mutual_exclusion) sem_post(&s_sem); in main()
87 sem_destroy(&s_sem); in main()
100 if (s_do_mutual_exclusion) sem_wait(&s_sem); in thread_func()
102 if (s_do_mutual_exclusion) sem_post(&s_sem); in thread_func()
Dannotate_sem.c23 static sem_t s_sem; variable
65 sem_wait(&s_sem); in thread_func()
67 sem_post(&s_sem); in thread_func()
69 sem_wait(&s_sem); in thread_func()
71 sem_post(&s_sem); in thread_func()
82 sem_init(&s_sem, 1); in main()
90 assert(s_sem.value == 1); in main()
91 sem_destroy(&s_sem); in main()
Dpth_inconsistent_cond_wait.c41 static sem_t* s_sem; variable
81 sem_post(s_sem); in thread_func()
112 s_sem = create_semaphore(semaphore_name); in main()
122 sem_wait(s_sem); in main()
123 sem_wait(s_sem); in main()
124 destroy_semaphore(semaphore_name, s_sem); in main()
125 s_sem = 0; in main()
Dpth_detached_sem.c18 static sem_t s_sem; variable
23 sem_post(&s_sem); in increment_finished_count()
53 sem_init(&s_sem, 0, 0); in main()
81 sem_wait(&s_sem); in main()
87 sem_destroy(&s_sem); in main()