de.tsl2.nano.core.util.ConcurrentUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.terminal Show documentation
Show all versions of tsl2.nano.terminal Show documentation
TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)
???? 4K
D ? ?
?
?
? ? ?
D ?
H ? H ? ?
? ?
?
? ? ?
? ? ? ?
?
? ?
?
?
? H ? ? ? ?
? ?
?
H ?
?
D ?
? ? ?
?
? ? ?
H ? ? ? ?
?
? ?
? ?
? ?
? ? ?
? ? ? ? ?
4 ? ?
H ?
?
? ?
? ?
? ? ? ? ?
? ? ? ?
H ?
F ?
H
F
J ? LOG Lorg/apache/commons/logging/Log; threadLocals Ljava/util/Map; Signature ;>; ()V Code LineNumberTable LocalVariableTable this 'Lde/tsl2/nano/core/util/ConcurrentUtil; getCaller ()Ljava/lang/String; st [Ljava/lang/StackTraceElement;
StackMapTable \ startDaemon ((Ljava/lang/Runnable;)Ljava/lang/Thread; runnable Ljava/lang/Runnable; :(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread; name Ljava/lang/String; runtime UncaughtExceptionHandler InnerClasses f(Ljava/lang/String;Ljava/lang/Runnable;ZLjava/lang/Thread$UncaughtExceptionHandler;)Ljava/lang/Thread; lowPriority Z handler +Ljava/lang/Thread$UncaughtExceptionHandler; thread Ljava/lang/Thread; ?
getCurrent %(Ljava/lang/Class;)Ljava/lang/Object; threadLocalType Ljava/lang/Class; tl Ljava/lang/ThreadLocal; LocalVariableTypeTable Ljava/lang/Class; Ljava/lang/ThreadLocal<*>; ? 1(Ljava/lang/Class;)TT; getCurrentAsMap #([Ljava/lang/Class;)Ljava/util/Map; i I threadLocalTypes [Ljava/lang/Class; map Ljava/util/HashMap; 8Ljava/util/HashMap; ? H([Ljava/lang/Class;)Ljava/util/Map;
setCurrent ([Ljava/lang/Object;)V values [Ljava/lang/Object;
removeCurrent ([Ljava/lang/Class;)V types ? removeAllCurrent sleep (J)V milliseconds J (JZ)V e Ljava/lang/InterruptedException; doSysOutLog ? waitFor (Ljava/util/function/Supplier;)V callback Ljava/util/function/Supplier; 2Ljava/util/function/Supplier; 5(Ljava/util/function/Supplier;)V stopOrInterrupt (Ljava/lang/String;)Z
threadName tg Ljava/lang/ThreadGroup;
allThreads [Ljava/lang/Thread;
? runWorker ([Ljava/lang/Runnable;)V runnables [Ljava/lang/Runnable; createParallelWorker 3(Ljava/lang/String;)Lde/tsl2/nano/core/util/Worker; Y(Ljava/lang/String;)Lde/tsl2/nano/core/util/Worker; V(Ljava/lang/String;ILjava/lang/Class;Ljava/lang/Class;)Lde/tsl2/nano/core/util/Worker; priority input output Ljava/lang/Class; Ljava/lang/Class; ?(Ljava/lang/String;ILjava/lang/Class;Ljava/lang/Class;)Lde/tsl2/nano/core/util/Worker;
SourceFile ConcurrentUtil.java R S java/lang/Exception
Z ` k L M java/lang/StringBuilder starting thread a java/lang/Thread ! S N O"#$ java/lang/ThreadLocal#% java/util/HashMap R s t&'()*+ S+$ ? ?,-.
/01 Z sleeping for 2 milliseconds...34 ? ? ...awake
java/lang/InterruptedException5678 java/lang/Boolean9:;<
=>?@AB interrupting thread CD S couldn't find thread E ? ?F ? java/lang/Object ? ? de/tsl2/nano/core/util/Worker RG %de/tsl2/nano/core/util/ConcurrentUtilHIJ java/util/Hashtable java/lang/String )java/lang/Thread$UncaughtExceptionHandler java/lang/ThreadGroup
getStackTrace ()[Ljava/lang/StackTraceElement; java/lang/StackTraceElement toString append -(Ljava/lang/String;)Ljava/lang/StringBuilder; org/apache/commons/logging/Log info (Ljava/lang/Object;)V java/util/concurrent/Executors defaultThreadFactory &()Ljava/util/concurrent/ThreadFactory; "java/util/concurrent/ThreadFactory newThread setName (Ljava/lang/String;)V setUncaughtExceptionHandler .(Ljava/lang/Thread$UncaughtExceptionHandler;)V setPriority (I)V setDaemon (Z)V start
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; ()Ljava/lang/Object; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; getClass ()Ljava/lang/Class; set remove java/lang/System out Ljava/io/PrintStream;
currentThread ()Ljava/lang/Thread; getName (J)Ljava/lang/StringBuilder; java/io/PrintStream print "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; java/util/function/Supplier booleanValue ()Z getThreadGroup ()Ljava/lang/ThreadGroup; activeCount ()I enumerate ([Ljava/lang/Thread;)I equals (Ljava/lang/Object;)Z debug interrupt error run (Ljava/lang/String;III)V de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! H D L M N O P Q R S T / *? ? U V W X Y Z T ] ? Y? ? K*?? *2? ? ? U
- . V [ \ ] ? ^A _ ` a T 5 *? *? ? U 2 V b c ` d T <