Commit 3f901584 authored by Xiaoying Pu's avatar Xiaoying Pu

MT dies exactly 1 min after.... and the timer is not called properly so it seems

parent ff8302d0
......@@ -132,6 +132,7 @@ public class Trial extends Thread {
@Override
public void run() {
System.out.println("SLEEP starts at -------->" + System.currentTimeMillis()/1000L);
int tDecisions = Configurator.gettDecisions();
try {
Thread.sleep(tDecisions);
......@@ -140,8 +141,12 @@ public class Trial extends Thread {
}
pFacade.endDecision();
System.out.println("SLEEP ends at -------->" + System.currentTimeMillis()/1000L);
// own goal
theListener.run(EventType.DECISION_FINISHED);
}
}
......@@ -178,6 +183,9 @@ public class Trial extends Thread {
sFacade.showDigit(util.WLState.LOW_WORKLOAD);
}
// start UDP to MouseTracker
// go look at the mousetracker!!!
// TODO why is this not sleeping/???/
actionQueue.add(new SleepForDecisions(ActionType.SLEEP_FOR_DECISIONS));
pFacade.startAndWait(curState);
}
int tTask = Configurator.gettSTask();
......@@ -191,8 +199,7 @@ public class Trial extends Thread {
sFacade.endDigitShowing();
System.out.println("Digit should go away now");
// yooo end digit showing
// go look at the mousetracker!!!
actionQueue.add(new SleepForDecisions(ActionType.SLEEP_FOR_DECISIONS));
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment