s.smali
.class final Lcn/jiguang/af/s;
.super Ljava/util/concurrent/ThreadPoolExecutor;
# instance fields
.field final synthetic a:Lcn/jiguang/af/r;
# direct methods
.method constructor <init>(Lcn/jiguang/af/r;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
.registers 16
iput-object p1, p0, Lcn/jiguang/af/s;->a:Lcn/jiguang/af/r;
const-wide/16 v4, 0x0
move-object v1, p0
move v2, p2
move v3, p3
move-object v6, p6
move-object v7, p7
invoke-direct/range {v1 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
return-void
.end method
# virtual methods
.method protected final afterExecute(Ljava/lang/Runnable;Ljava/lang/Throwable;)V
.registers 6
const/4 v0, 0x1
:try_start_1
invoke-virtual {p0}, Lcn/jiguang/af/s;->getActiveCount()I
move-result v1
if-gt v1, v0, :cond_35
invoke-virtual {p0}, Lcn/jiguang/af/s;->getQueue()Ljava/util/concurrent/BlockingQueue;
move-result-object v1
invoke-interface {v1}, Ljava/util/concurrent/BlockingQueue;->isEmpty()Z
move-result v1
if-eqz v1, :cond_35
iget-object v1, p0, Lcn/jiguang/af/s;->a:Lcn/jiguang/af/r;
invoke-static {v1}, Lcn/jiguang/af/r;->a(Lcn/jiguang/af/r;)Landroid/os/Handler;
move-result-object v1
const/16 v2, 0xe9
invoke-virtual {v1, v2}, Landroid/os/Handler;->hasMessages(I)Z
:try_end_1c
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1c} :catch_39
move-result v1
if-nez v1, :cond_35
:goto_1f
if-eqz v0, :cond_34
:try_start_21
iget-object v0, p0, Lcn/jiguang/af/s;->a:Lcn/jiguang/af/r;
invoke-static {v0}, Lcn/jiguang/af/r;->b(Lcn/jiguang/af/r;)Ljava/util/concurrent/atomic/AtomicBoolean;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
iget-object v0, p0, Lcn/jiguang/af/s;->a:Lcn/jiguang/af/r;
invoke-static {v0}, Lcn/jiguang/af/r;->c(Lcn/jiguang/af/r;)Ljava/util/concurrent/CountDownLatch;
move-result-object v0
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
:try_end_34
.catch Ljava/lang/Throwable; {:try_start_21 .. :try_end_34} :catch_37
:cond_34
:goto_34
return-void
:cond_35
const/4 v0, 0x0
goto :goto_1f
:catch_37
move-exception v0
goto :goto_34
:catch_39
move-exception v1
goto :goto_1f
.end method