Searched refs:sems2 (Results 1 – 1 of 1) sorted by relevance
58 Sem_set sems2; variable133 sem_init(&sems2.sem1, 0, 0); in main()134 sem_init(&sems2.sem2, 0, 0); in main()135 sem_init(&sems2.sem3, 0, 0); in main()142 err = pthread_create(&thread2, NULL, thread_routine, &sems2); in main()149 safe_unlock(&sems2.sem1); in main()152 safe_lock(&sems2.sem2); in main()164 safe_unlock(&sems2.sem3); in main()