auto commit

This commit is contained in:
CyC2018 2018-03-13 18:05:05 +08:00
parent 87e6ed7d38
commit f4a3c25924

View File

@ -535,9 +535,8 @@ void put_tow(i) {
up(&mutex);
}
void test(i) { // 尝试拿起两把筷子
if(state[i] == HUNGRY && state[LEFT] != EATING
&& state[RIGHT] !=EATING) {
void test(i) { // 尝试拿起两把筷子
if(state[i] == HUNGRY && state[LEFT] != EATING && state[RIGHT] !=EATING) {
state[i] = EATING;
up(&s[i]);
}