git-svn-id: https://samskivert.googlecode.com/svn/trunk@1867 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -17,7 +17,7 @@ public class BasicRunQueue extends LoopingThread
|
||||
public BasicRunQueue ()
|
||||
{
|
||||
super("RunQueue");
|
||||
_queue = new Queue();
|
||||
_queue = new Queue<Runnable>();
|
||||
}
|
||||
|
||||
// documentation inherited from interface
|
||||
@@ -35,7 +35,7 @@ public class BasicRunQueue extends LoopingThread
|
||||
// documentation inherited
|
||||
protected void iterate ()
|
||||
{
|
||||
Runnable r = (Runnable) _queue.get();
|
||||
Runnable r = _queue.get();
|
||||
try {
|
||||
r.run();
|
||||
|
||||
@@ -56,5 +56,5 @@ public class BasicRunQueue extends LoopingThread
|
||||
}
|
||||
|
||||
/** The queue of things to run. */
|
||||
protected Queue _queue;
|
||||
protected Queue<Runnable> _queue;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class Invoker extends LoopingThread
|
||||
public void iterate ()
|
||||
{
|
||||
// pop the next item off of the queue
|
||||
Unit unit = (Unit) _queue.get();
|
||||
Unit unit = _queue.get();
|
||||
|
||||
long start;
|
||||
if (PERF_TRACK) {
|
||||
@@ -226,7 +226,7 @@ public class Invoker extends LoopingThread
|
||||
}
|
||||
|
||||
/** 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. */
|
||||
protected RunQueue _receiver;
|
||||
|
||||
Reference in New Issue
Block a user