Home
last modified time | relevance | path

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

/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_philosopher.c71 int PhID = *(int *)ID; in philosopher() local
76 think(PhID); in philosopher()
82 state[PhID] = hungry; in philosopher()
83 test(PhID); in philosopher()
88 if (-1 == sem_wait(&ph[PhID])) { in philosopher()
92 eat(PhID); in philosopher()
98 state[PhID] = thinking; in philosopher()
99 if ((PhID - 1) < 0) in philosopher()
100 prePH = PH_NUM + (PhID - 1); in philosopher()
102 prePH = (PhID - 1) % PH_NUM; in philosopher()
[all …]