67 lines
1.7 KiB
Smali
67 lines
1.7 KiB
Smali
.class final Lkotlinx/coroutines/l$a;
|
|
.super Ljava/lang/Object;
|
|
.source "CommonPool.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lkotlinx/coroutines/l;->yD()Ljava/util/concurrent/ExecutorService;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic bfx:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/concurrent/atomic/AtomicInteger;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lkotlinx/coroutines/l$a;->bfx:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/Thread;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "CommonPool-worker-"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v2, p0, Lkotlinx/coroutines/l$a;->bfx:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, p1, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Thread;->setDaemon(Z)V
|
|
|
|
return-object v0
|
|
.end method
|