|
@@ -232,6 +232,7 @@ void intersection_before_entry(Direction origin, Direction destination)
|
|
temp->cv = cv_create("carcv");
|
|
temp->cv = cv_create("carcv");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ kprintf("actually sleeping now\n");
|
|
cv_wait(temp->cv, globlock); // sleep and reacquire lock once woken
|
|
cv_wait(temp->cv, globlock); // sleep and reacquire lock once woken
|
|
goto RESTART; // now we have to make sure there's nothing else screwing us over
|
|
goto RESTART; // now we have to make sure there's nothing else screwing us over
|
|
}
|
|
}
|