229 lines
5 KiB
Smali
229 lines
5 KiB
Smali
.class final Lkotlinx/coroutines/c;
|
|
.super Lkotlinx/coroutines/a;
|
|
.source "Builders.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lkotlinx/coroutines/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final big:Ljava/lang/Thread;
|
|
|
|
.field private final bih:Lkotlinx/coroutines/aw;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Thread;Lkotlinx/coroutines/aw;)V
|
|
.locals 1
|
|
|
|
const-string v0, "parentContext"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "blockedThread"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p0, p1, v0}, Lkotlinx/coroutines/a;-><init>(Lkotlin/coroutines/CoroutineContext;Z)V
|
|
|
|
iput-object p2, p0, Lkotlinx/coroutines/c;->big:Ljava/lang/Thread;
|
|
|
|
iput-object p3, p0, Lkotlinx/coroutines/c;->bih:Lkotlinx/coroutines/aw;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected final Cm()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final Cn()Ljava/lang/Object;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Dj()Lkotlinx/coroutines/cc;
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lkotlinx/coroutines/c;->bih:Lkotlinx/coroutines/aw;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/aw;->a(Lkotlinx/coroutines/aw;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
:try_start_1
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
iget-object v0, p0, Lkotlinx/coroutines/c;->bih:Lkotlinx/coroutines/aw;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lkotlinx/coroutines/aw;->CL()J
|
|
|
|
move-result-wide v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
:goto_1
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/c;->isCompleted()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Dj()Lkotlinx/coroutines/cc;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2, p0, v0, v1}, Lkotlinx/coroutines/cc;->parkNanos(Ljava/lang/Object;J)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:try_start_2
|
|
iget-object v0, p0, Lkotlinx/coroutines/c;->bih:Lkotlinx/coroutines/aw;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/aw;->b(Lkotlinx/coroutines/aw;)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:cond_3
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Dj()Lkotlinx/coroutines/cc;
|
|
|
|
invoke-virtual {p0}, Lkotlinx/coroutines/c;->CY()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlinx/coroutines/bo;->bn(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v1, v0, Lkotlinx/coroutines/t;
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move-object v1, v0
|
|
|
|
:goto_2
|
|
check-cast v1, Lkotlinx/coroutines/t;
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
return-object v0
|
|
|
|
:cond_5
|
|
iget-object v0, v1, Lkotlinx/coroutines/t;->cause:Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
:try_start_3
|
|
new-instance v0, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
invoke-super {p0, v1}, Lkotlinx/coroutines/bn;->bg(Ljava/lang/Object;)Z
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
:try_start_4
|
|
iget-object v1, p0, Lkotlinx/coroutines/c;->bih:Lkotlinx/coroutines/aw;
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
invoke-static {v1}, Lkotlinx/coroutines/aw;->b(Lkotlinx/coroutines/aw;)V
|
|
|
|
:cond_7
|
|
throw v0
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
invoke-static {}, Lkotlinx/coroutines/cd;->Dj()Lkotlinx/coroutines/cc;
|
|
|
|
goto :goto_4
|
|
|
|
:goto_3
|
|
throw v0
|
|
|
|
:goto_4
|
|
goto :goto_3
|
|
.end method
|
|
|
|
.method protected final i(Ljava/lang/Object;I)V
|
|
.locals 0
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lkotlinx/coroutines/c;->big:Ljava/lang/Thread;
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->k(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/lit8 p1, p1, 0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lkotlinx/coroutines/c;->big:Ljava/lang/Thread;
|
|
|
|
invoke-static {p1}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|