if (TEST) GRID_SIZE = 10;
else GRID_SIZE = 600;
if(DEBUG) System.out.println("Creating grid...");
- //grid = new Grid(GRID_SIZE, GRID_SIZE, 2, rel, DEBUG, OCC, EMPTY, MAX_WEIGHT); //the Lee 3D Grid;
grid = new Grid(GRID_SIZE, GRID_SIZE, 2, rel, this); //the Lee 3D Grid;
if(DEBUG) System.out.println("Done creating grid");
work = new WorkQueue(); // empty
}
- //FIXME
public WorkQueue getNextTrack() {
//synchronized(queueLock) {
if(work.next != null) {
return null;
}
- //FIXME
public boolean layNextTrack(WorkQueue q, int [][][]tempg) {
// start transaction
boolean done = false;
}
System.out.println("DEBUG: found "+found+" missing "+missing);
}
-
}
public static void main(String [] args) {
boolean done;
int[][][] tempg;
- public LeeThread() {
- stop = false;
- finished = false;
- sampleNow = false;
- doneSample = true;
- totalLaidTracks=0;
- myLaidTracks=0;
- done = true;
- }
-
/*
protected static ThreadLocal<ThreadState> _threadState = new ThreadLocal<ThreadState>() {
protected synchronized ThreadState initialValue() {
};
*/
-
LeeThread(LeeRouter lt) {
+ stop = false;
+ finished = false;
+ sampleNow = false;
+ doneSample = true;
+ totalLaidTracks=0;
+ myLaidTracks=0;
+ done = true;
+
this.lt = lt;
tempg = new int[lt.GRID_SIZE][lt.GRID_SIZE][2]; // Lee 2D Grid copy
}
doneSample = true;
sampleNow = false;
}
- atomic {
- if(done) {
+ if(done) {
+ atomic {
t = lt.getNextTrack();
done = false;
}
GridCell.java \
LeeThread.java \
WorkQueue.java
-FLAGS=-singleTM -optimize -profile -mainclass ${MAINCLASS} -joptimize -debug -garbagestats -transstats
+FLAGS=-singleTM -nooptimize -profile -mainclass ${MAINCLASS} -joptimize -debug -garbagestats -transstats
default:
../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}