git-svn-id: https://samskivert.googlecode.com/svn/trunk@1867 6335cc39-0255-0410-8fd6-9bcaacd3b74c

This commit is contained in:
mdb
2006-07-04 22:39:22 +00:00
parent 436e588a53
commit 52af596bf6
2 changed files with 5 additions and 5 deletions
@@ -17,7 +17,7 @@ public class BasicRunQueue extends LoopingThread
public BasicRunQueue () public BasicRunQueue ()
{ {
super("RunQueue"); super("RunQueue");
_queue = new Queue(); _queue = new Queue<Runnable>();
} }
// documentation inherited from interface // documentation inherited from interface
@@ -35,7 +35,7 @@ public class BasicRunQueue extends LoopingThread
// documentation inherited // documentation inherited
protected void iterate () protected void iterate ()
{ {
Runnable r = (Runnable) _queue.get(); Runnable r = _queue.get();
try { try {
r.run(); r.run();
@@ -56,5 +56,5 @@ public class BasicRunQueue extends LoopingThread
} }
/** The queue of things to run. */ /** The queue of things to run. */
protected Queue _queue; protected Queue<Runnable> _queue;
} }
+2 -2
View File
@@ -116,7 +116,7 @@ public class Invoker extends LoopingThread
public void iterate () public void iterate ()
{ {
// pop the next item off of the queue // pop the next item off of the queue
Unit unit = (Unit) _queue.get(); Unit unit = _queue.get();
long start; long start;
if (PERF_TRACK) { if (PERF_TRACK) {
@@ -226,7 +226,7 @@ public class Invoker extends LoopingThread
} }
/** The invoker's queue of units to be executed. */ /** The invoker's queue of units to be executed. */
protected Queue _queue = new Queue(); protected Queue<Unit> _queue = new Queue<Unit>();
/** The result receiver with which we're working. */ /** The result receiver with which we're working. */
protected RunQueue _receiver; protected RunQueue _receiver;