public class org.eclipse.jgit.lib.ThreadSafeProgressMonitor implements org.eclipse.jgit.lib.ProgressMonitor
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.eclipse.jgit.lib.ThreadSafeProgressMonitor
  super_class: java.lang.Object
{
  private final org.eclipse.jgit.lib.ProgressMonitor pm;
    descriptor: Lorg/eclipse/jgit/lib/ProgressMonitor;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.locks.ReentrantLock lock;
    descriptor: Ljava/util/concurrent/locks/ReentrantLock;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.lang.Thread mainThread;
    descriptor: Ljava/lang/Thread;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicInteger workers;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicInteger pendingUpdates;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.Semaphore process;
    descriptor: Ljava/util/concurrent/Semaphore;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 30
            ldc Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.eclipse.jgit.lib.ThreadSafeProgressMonitor.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.eclipse.jgit.lib.ProgressMonitor);
    descriptor: (Lorg/eclipse/jgit/lib/ProgressMonitor;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
        start local 1 // org.eclipse.jgit.lib.ProgressMonitor pm
         0: .line 49
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 50
            aload 0 /* this */
            aload 1 /* pm */
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
         2: .line 51
            aload 0 /* this */
            new java.util.concurrent.locks.ReentrantLock
            dup
            invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.lock:Ljava/util/concurrent/locks/ReentrantLock;
         3: .line 52
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.mainThread:Ljava/lang/Thread;
         4: .line 53
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            iconst_0
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.workers:Ljava/util/concurrent/atomic/AtomicInteger;
         5: .line 54
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            iconst_0
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pendingUpdates:Ljava/util/concurrent/atomic/AtomicInteger;
         6: .line 55
            aload 0 /* this */
            new java.util.concurrent.Semaphore
            dup
            iconst_0
            invokespecial java.util.concurrent.Semaphore.<init>:(I)V
            putfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.process:Ljava/util/concurrent/Semaphore;
         7: .line 56
            return
        end local 1 // org.eclipse.jgit.lib.ProgressMonitor pm
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            0    8     1    pm  Lorg/eclipse/jgit/lib/ProgressMonitor;
    MethodParameters:
      Name  Flags
      pm    

  public void start(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
        start local 1 // int totalTasks
         0: .line 61
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.isMainThread:()Z
            ifne 2
         1: .line 62
            new java.lang.IllegalStateException
            dup
            invokespecial java.lang.IllegalStateException.<init>:()V
            athrow
         2: .line 63
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
            iload 1 /* totalTasks */
            invokeinterface org.eclipse.jgit.lib.ProgressMonitor.start:(I)V
         3: .line 64
            return
        end local 1 // int totalTasks
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0        this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            0    4     1  totalTasks  I
    MethodParameters:
            Name  Flags
      totalTasks  

  public void beginTask(java.lang.String, int);
    descriptor: (Ljava/lang/String;I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
        start local 1 // java.lang.String title
        start local 2 // int totalWork
         0: .line 69
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.isMainThread:()Z
            ifne 2
         1: .line 70
            new java.lang.IllegalStateException
            dup
            invokespecial java.lang.IllegalStateException.<init>:()V
            athrow
         2: .line 71
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
            aload 1 /* title */
            iload 2 /* totalWork */
            invokeinterface org.eclipse.jgit.lib.ProgressMonitor.beginTask:(Ljava/lang/String;I)V
         3: .line 72
            return
        end local 2 // int totalWork
        end local 1 // java.lang.String title
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    4     0       this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            0    4     1      title  Ljava/lang/String;
            0    4     2  totalWork  I
    MethodParameters:
           Name  Flags
      title      
      totalWork  

  public void startWorker();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 78
            aload 0 /* this */
            iconst_1
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.startWorkers:(I)V
         1: .line 79
            return
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;

  public void startWorkers(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
        start local 1 // int count
         0: .line 88
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.workers:Ljava/util/concurrent/atomic/AtomicInteger;
            iload 1 /* count */
            invokevirtual java.util.concurrent.atomic.AtomicInteger.addAndGet:(I)I
            pop
         1: .line 89
            return
        end local 1 // int count
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            0    2     1  count  I
    MethodParameters:
       Name  Flags
      count  

  public void endWorker();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 95
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.workers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
            ifne 2
         1: .line 96
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.process:Ljava/util/concurrent/Semaphore;
            invokevirtual java.util.concurrent.Semaphore.release:()V
         2: .line 97
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;

  public void pollForUpdates();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 106
            getstatic org.eclipse.jgit.lib.ThreadSafeProgressMonitor.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.isMainThread:()Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 107
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.doUpdates:()V
         2: .line 108
            return
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;

  public void waitForCompletion();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 121
            getstatic org.eclipse.jgit.lib.ThreadSafeProgressMonitor.$assertionsDisabled:Z
            ifne 3
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.isMainThread:()Z
            ifne 3
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 123
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.doUpdates:()V
         2: .line 124
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.process:Ljava/util/concurrent/Semaphore;
            invokevirtual java.util.concurrent.Semaphore.acquire:()V
         3: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.workers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            ifgt 1
         4: .line 126
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.doUpdates:()V
         5: .line 127
            return
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
    Exceptions:
      throws java.lang.InterruptedException

  private void doUpdates();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 130
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pendingUpdates:Ljava/util/concurrent/atomic/AtomicInteger;
            iconst_0
            invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndSet:(I)I
            istore 1 /* cnt */
        start local 1 // int cnt
         1: .line 131
            iload 1 /* cnt */
            ifle 3
         2: .line 132
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
            iload 1 /* cnt */
            invokeinterface org.eclipse.jgit.lib.ProgressMonitor.update:(I)V
         3: .line 133
      StackMap locals: int
      StackMap stack:
            return
        end local 1 // int cnt
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            1    4     1   cnt  I

  public void update(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
        start local 1 // int completed
         0: .line 138
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pendingUpdates:Ljava/util/concurrent/atomic/AtomicInteger;
            iload 1 /* completed */
            invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndAdd:(I)I
            ifne 2
         1: .line 139
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.process:Ljava/util/concurrent/Semaphore;
            invokevirtual java.util.concurrent.Semaphore.release:()V
         2: .line 140
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int completed
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    3     0       this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
            0    3     1  completed  I
    MethodParameters:
           Name  Flags
      completed  

  public boolean isCancelled();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 145
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.lock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 147
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
            invokeinterface org.eclipse.jgit.lib.ProgressMonitor.isCancelled:()Z
            istore 2
         2: .line 149
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.lock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         3: .line 147
            iload 2
            ireturn
         4: .line 148
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
         5: .line 149
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.lock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         6: .line 150
            aload 1
            athrow
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
      Exception table:
        from    to  target  type
           1     2       4  any

  public void endTask();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 156
            aload 0 /* this */
            invokevirtual org.eclipse.jgit.lib.ThreadSafeProgressMonitor.isMainThread:()Z
            ifne 2
         1: .line 157
            new java.lang.IllegalStateException
            dup
            invokespecial java.lang.IllegalStateException.<init>:()V
            athrow
         2: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.pm:Lorg/eclipse/jgit/lib/ProgressMonitor;
            invokeinterface org.eclipse.jgit.lib.ProgressMonitor.endTask:()V
         3: .line 159
            return
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;

  private boolean isMainThread();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
         0: .line 162
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            aload 0 /* this */
            getfield org.eclipse.jgit.lib.ThreadSafeProgressMonitor.mainThread:Ljava/lang/Thread;
            if_acmpne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.eclipse.jgit.lib.ThreadSafeProgressMonitor this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/eclipse/jgit/lib/ThreadSafeProgressMonitor;
}
SourceFile: "ThreadSafeProgressMonitor.java"