add testcase & remove unused code

This commit is contained in:
wenshao
2013-06-16 08:51:51 +08:00
parent 2aabdaea4b
commit da433839ee
98 changed files with 1424 additions and 1459 deletions
@@ -32,7 +32,8 @@ public class DaemonThreadFactory implements ThreadFactory {
}
public Thread newThread(Runnable r) {
Thread newThread = new Thread(r, nameStart + threadNo.getAndIncrement() + nameEnd);
String threadName = nameStart + threadNo.getAndIncrement() + nameEnd;
Thread newThread = new Thread(r, threadName);
newThread.setDaemon(true);
if (newThread.getPriority() != Thread.NORM_PRIORITY) {
newThread.setPriority(Thread.NORM_PRIORITY);