38 |
public static boolean dbg = false; |
public static boolean dbg = false; |
39 |
final static void pa(String s) { System.out.println(s); } |
final static void pa(String s) { System.out.println(s); } |
40 |
|
|
41 |
// XXX Should use Lifo but Fenfire code is not yet ready |
private PriorityQueue queue = new LifoPriorityQueue(); |
|
// for that |
|
|
// private PriorityQueue queue = new LifoPriorityQueue(); |
|
|
private PriorityQueue queue = new DumbPriorityQueue(); |
|
42 |
|
|
43 |
public void addTask(Runnable r, float priority) { |
public void addTask(Runnable r, float priority) { |
44 |
synchronized(queue) { |
synchronized(queue) { |