Beispiel #1
0
static void *OneVehicle(void *cardirect)
{
	direction direct = (direction)cardirect;
	ArriveBridge(direct);
	OnBridge(direct);
	ExitBridge(direct);
	return NULL;
}
Beispiel #2
0
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);
}