Searched refs:s_do_mutual_exclusion (Results 1 – 2 of 2) sorted by relevance
28 static int s_do_mutual_exclusion = 0; variable46 s_do_mutual_exclusion = 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()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()
28 static int s_do_mutual_exclusion = 0; variable47 s_do_mutual_exclusion = 1; 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()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()