mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
217 lines
6.3 KiB
Smali
217 lines
6.3 KiB
Smali
.class public final Lokhttp3/internal/concurrent/TaskRunner$RealBackend;
|
|
.super Ljava/lang/Object;
|
|
.source "TaskRunner.kt"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/internal/concurrent/TaskRunner$Backend;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/concurrent/TaskRunner;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "RealBackend"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nTaskRunner.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TaskRunner.kt\nokhttp3/internal/concurrent/TaskRunner$RealBackend\n+ 2 Util.kt\nokhttp3/internal/Util\n*L\n1#1,314:1\n553#2:315\n*E\n*S KotlinDebug\n*F\n+ 1 TaskRunner.kt\nokhttp3/internal/concurrent/TaskRunner$RealBackend\n*L\n281#1:315\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0010\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\nH\u0016J\u0010\u0010\u000b\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\nH\u0016J\u0018\u0010\u000c\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u000eH\u0016J\u0010\u0010\u000f\u001a\u00020\u00082\u0006\u0010\u0010\u001a\u00020\u0011H\u0016J\u0008\u0010\u0012\u001a\u00020\u000eH\u0016J\u0006\u0010\u0013\u001a\u00020\u0008R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0014"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/concurrent/TaskRunner$RealBackend;",
|
|
"Lokhttp3/internal/concurrent/TaskRunner$Backend;",
|
|
"threadFactory",
|
|
"Ljava/util/concurrent/ThreadFactory;",
|
|
"(Ljava/util/concurrent/ThreadFactory;)V",
|
|
"executor",
|
|
"Ljava/util/concurrent/ThreadPoolExecutor;",
|
|
"beforeTask",
|
|
"",
|
|
"taskRunner",
|
|
"Lokhttp3/internal/concurrent/TaskRunner;",
|
|
"coordinatorNotify",
|
|
"coordinatorWait",
|
|
"nanos",
|
|
"",
|
|
"execute",
|
|
"runnable",
|
|
"Ljava/lang/Runnable;",
|
|
"nanoTime",
|
|
"shutdown",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final executor:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/concurrent/ThreadFactory;)V
|
|
.locals 9
|
|
|
|
const-string v0, "threadFactory"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 266
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 267
|
|
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const v3, 0x7fffffff
|
|
|
|
const-wide/16 v4, 0x3c
|
|
|
|
.line 270
|
|
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.line 271
|
|
new-instance v1, Ljava/util/concurrent/SynchronousQueue;
|
|
|
|
invoke-direct {v1}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
|
|
|
|
move-object v7, v1
|
|
|
|
check-cast v7, Ljava/util/concurrent/BlockingQueue;
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v8, p1
|
|
|
|
.line 267
|
|
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/concurrent/TaskRunner$RealBackend;->executor:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public beforeTask(Lokhttp3/internal/concurrent/TaskRunner;)V
|
|
.locals 0
|
|
|
|
const-string p0, "taskRunner"
|
|
|
|
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public coordinatorNotify(Lokhttp3/internal/concurrent/TaskRunner;)V
|
|
.locals 0
|
|
|
|
const-string p0, "taskRunner"
|
|
|
|
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 315
|
|
check-cast p1, Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->notify()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public coordinatorWait(Lokhttp3/internal/concurrent/TaskRunner;J)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/InterruptedException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string p0, "taskRunner"
|
|
|
|
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/32 v0, 0xf4240
|
|
|
|
.line 291
|
|
div-long v2, p2, v0
|
|
|
|
mul-long/2addr v0, v2
|
|
|
|
sub-long v0, p2, v0
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long p0, v2, v4
|
|
|
|
if-gtz p0, :cond_0
|
|
|
|
cmp-long p0, p2, v4
|
|
|
|
if-lez p0, :cond_1
|
|
|
|
.line 294
|
|
:cond_0
|
|
check-cast p1, Ljava/lang/Object;
|
|
|
|
long-to-int p0, v0
|
|
|
|
invoke-virtual {p1, v2, v3, p0}, Ljava/lang/Object;->wait(JI)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public execute(Ljava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
const-string v0, "runnable"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/concurrent/TaskRunner$RealBackend;->executor:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 299
|
|
invoke-virtual {p0, p1}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public nanoTime()J
|
|
.locals 2
|
|
|
|
.line 278
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final shutdown()V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/concurrent/TaskRunner$RealBackend;->executor:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 303
|
|
invoke-virtual {p0}, Ljava/util/concurrent/ThreadPoolExecutor;->shutdown()V
|
|
|
|
return-void
|
|
.end method
|