This commit is contained in:
2011-02-26 14:30:14 +00:00
parent 30ebdeb7e3
commit 4c75ba5599
15 changed files with 183 additions and 119 deletions

View File

@@ -16,6 +16,7 @@ public abstract class EventListener extends Listener implements Runnable {
}
public final void run() {
System.out.println(this);
while (run) {
if (eventQueue.isEmpty()) {
sleep();

View File

@@ -39,7 +39,9 @@ public class EventManager {
self.add(task);
break;
case APPLICATION:
applicationCycle.current().add(task);
if (applicationCycle.size() > 0) {
applicationCycle.current().add(task);
}
break;
default:
for (EventListener eventListener : taskListenerList) {