static void *OneVehicle(void *cardirect) { direction direct = (direction)cardirect; ArriveBridge(direct); OnBridge(direct); ExitBridge(direct); return NULL; }
void OneVehicle(int direc, int prio) { ArriveBridge(direc,prio); CrossBridge(direc,prio); printf("%s %d %s %d\n","CROSSED Origin =",direc,"Priority =",prio); ExitBridge(direc,prio); }