2020-04-27 20:53:11 +00:00
|
|
|
.class public Ls/b$b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "BoltsExecutors.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-04-27 20:53:11 +00:00
|
|
|
value = Ls/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x9
|
|
|
|
name = "b"
|
2019-07-24 11:27:29 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/ThreadLocal<",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-04-27 20:53:11 +00:00
|
|
|
.method public synthetic constructor <init>(Ls/b$a;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-instance p1, Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {p1}, Ljava/lang/ThreadLocal;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iput-object p1, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final a()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v1, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/ThreadLocal;->remove()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v1, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public execute(Ljava/lang/Runnable;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v1, p0, Ls/b$b;->d:Ljava/lang/ThreadLocal;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/16 v1, 0xf
|
|
|
|
|
|
|
|
if-gt v0, v1, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
:cond_1
|
2020-04-27 20:53:11 +00:00
|
|
|
sget-object v0, Ls/b;->c:Ls/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-27 20:53:11 +00:00
|
|
|
iget-object v0, v0, Ls/b;->a:Ljava/util/concurrent/ExecutorService;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:goto_0
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-virtual {p0}, Ls/b$b;->a()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-03-16 23:08:34 +00:00
|
|
|
:goto_1
|
2020-04-27 20:53:11 +00:00
|
|
|
invoke-virtual {p0}, Ls/b$b;->a()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|