Ability to name BasicRunQueue instances, from Charlie.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2369 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2008-08-21 00:26:42 +00:00
parent 2fcce480cd
commit 695f3c3609
@@ -29,11 +29,19 @@ public class BasicRunQueue extends LoopingThread
implements RunQueue
{
/**
* Construct a BasicRunQueue with a default Queue implementation.
* Construct a BasicRunQueue with a default Queue implementation and name.
*/
public BasicRunQueue ()
{
super("RunQueue");
this("RunQueue");
}
/**
* Construct a BasicRunQueue with a default Queue implementation and the given name.
*/
public BasicRunQueue (String name)
{
super(name);
_queue = new Queue<Runnable>();
}