class com.apple.concurrent.LibDispatchSerialQueue extends java.util.concurrent.AbstractExecutorService
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.apple.concurrent.LibDispatchSerialQueue
super_class: java.util.concurrent.AbstractExecutorService
{
static final int RUNNING;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int SHUTDOWN;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int TERMINATED;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3
final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
com.apple.concurrent.LibDispatchQueue nativeQueueWrapper;
descriptor: Lcom/apple/concurrent/LibDispatchQueue;
flags: (0x0000)
volatile int runState;
descriptor: I
flags: (0x0040) ACC_VOLATILE
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.concurrent.AbstractExecutorService.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.apple.concurrent.LibDispatchSerialQueue.lock:Ljava/lang/Object;
2: aload 0
new com.apple.concurrent.LibDispatchQueue
dup
lload 1
invokespecial com.apple.concurrent.LibDispatchQueue.<init>:(J)V
putfield com.apple.concurrent.LibDispatchSerialQueue.nativeQueueWrapper:Lcom/apple/concurrent/LibDispatchQueue;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
0 4 1 queuePtr J
MethodParameters:
Name Flags
queuePtr final
public void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.nativeQueueWrapper:Lcom/apple/concurrent/LibDispatchQueue;
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.nativeQueueWrapper:Lcom/apple/concurrent/LibDispatchQueue;
getfield com.apple.concurrent.LibDispatchQueue.ptr:J
aload 1
invokestatic com.apple.concurrent.LibDispatchNative.nativeExecuteAsync:(JLjava/lang/Runnable;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
0 3 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task final
public boolean isShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
public boolean isTerminated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
iconst_3
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
ifeq 3
aload 1
monitorexit
2: return
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
4: aload 0
new com.apple.concurrent.LibDispatchSerialQueue$1
dup
aload 0
invokespecial com.apple.concurrent.LibDispatchSerialQueue$1.<init>:(Lcom/apple/concurrent/LibDispatchSerialQueue;)V
invokevirtual com.apple.concurrent.LibDispatchSerialQueue.execute:(Ljava/lang/Runnable;)V
5: aload 0
aconst_null
putfield com.apple.concurrent.LibDispatchSerialQueue.nativeQueueWrapper:Lcom/apple/concurrent/LibDispatchQueue;
6: aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
Exception table:
from to target type
1 2 8 any
3 7 8 any
8 9 8 any
public java.util.List<java.lang.Runnable> shutdownNow();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.apple.concurrent.LibDispatchSerialQueue.shutdown:()V
1: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
Signature: ()Ljava/util/List<Ljava/lang/Runnable;>;
public boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
iconst_3
if_icmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
lstore 4
start local 4 2: lload 4
lconst_0
lcmp
ifgt 3
iconst_0
ireturn
3: StackMap locals: long
StackMap stack:
aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.lock:Ljava/lang/Object;
dup
astore 6
monitorenter
4: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
iconst_3
if_icmpne 6
aload 6
monitorexit
5: iconst_1
ireturn
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.lock:Ljava/lang/Object;
lload 1
invokevirtual java.lang.Object.wait:(J)V
7: aload 0
getfield com.apple.concurrent.LibDispatchSerialQueue.runState:I
iconst_3
if_icmpne 9
aload 6
monitorexit
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 6
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 6
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/apple/concurrent/LibDispatchSerialQueue;
0 14 1 timeout J
0 14 3 unit Ljava/util/concurrent/TimeUnit;
2 14 4 millis J
Exception table:
from to target type
4 5 11 any
6 8 11 any
9 10 11 any
11 12 11 any
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout final
unit final
}
SourceFile: "LibDispatchSerialQueue.java"
NestMembers:
com.apple.concurrent.LibDispatchSerialQueue$1
InnerClasses:
com.apple.concurrent.LibDispatchSerialQueue$1