forked from KNEMC/KLALB
优化代码,性能暴涨
This commit is contained in:
@@ -4,7 +4,7 @@ import java.lang.reflect.Method;
|
||||
|
||||
public class ThreadTool {
|
||||
public static boolean first=true;
|
||||
public static boolean forceD=false;
|
||||
public static boolean forceD=true;
|
||||
public static Thread makeVThreadIfSupport(String name,Runnable r) {
|
||||
if(forceD)
|
||||
return new Thread(r, name);
|
||||
|
||||
Reference in New Issue
Block a user