Unstable test (multiple exceptions)
This commit is contained in:
parent
d1061221e8
commit
6cc0bb434b
@ -63,21 +63,9 @@ public class MakkahCity {
|
||||
clearDoneCivilVehicles();
|
||||
for (Vehicle vehicle : listOfVehicles) {
|
||||
VMover m = new VMover(vehicle);
|
||||
threads.add(new Thread(m));
|
||||
}
|
||||
for (int i = 0; i < threads.size(); i += 4){
|
||||
threads.get(i).start();
|
||||
threads.get(i+1).start();
|
||||
threads.get(i+2).start();
|
||||
threads.get(i+3).start();
|
||||
try {
|
||||
threads.get(i).join();
|
||||
threads.get(i+1).join();
|
||||
threads.get(i+2).join();
|
||||
threads.get(i+3).join();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//threads.add(new Thread(m));
|
||||
Thread t = new Thread(m);
|
||||
t.start();
|
||||
}
|
||||
//noise based on time of day (From PDate)
|
||||
firstDayTimeMan.step(Calendar.MINUTE, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user