Searched refs:sems1 (Results 1 – 1 of 1) sorted by relevance
57 Sem_set sems1; variable129 sem_init(&sems1.sem1, 0, 1); in main()130 sem_init(&sems1.sem2, 0, 0); in main()131 sem_init(&sems1.sem3, 0, 0); in main()138 int err = pthread_create(&thread1, NULL, thread_routine, &sems1); in main()146 safe_lock(&sems1.sem2); in main()155 safe_unlock(&sems1.sem3); in main()