2015-04-20 15:36:01 -07:00
|
|
|
|
//: net/mindview/util/DaemonThreadFactory.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-04-20 15:36:01 -07:00
|
|
|
|
package net.mindview.util;
|
|
|
|
|
import java.util.concurrent.*;
|
|
|
|
|
|
|
|
|
|
public class DaemonThreadFactory implements ThreadFactory {
|
2015-05-05 11:20:13 -07:00
|
|
|
|
@Override
|
2015-04-20 15:36:01 -07:00
|
|
|
|
public Thread newThread(Runnable r) {
|
|
|
|
|
Thread t = new Thread(r);
|
|
|
|
|
t.setDaemon(true);
|
|
|
|
|
return t;
|
|
|
|
|
}
|
|
|
|
|
} ///:~
|