2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lrx/internal/util/j;
|
|
|
|
.super Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
.source "RxThreadFactory.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-10-23 04:50:18 +00:00
|
|
|
.field public static final bNb:Ljava/util/concurrent/ThreadFactory;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.field private static final serialVersionUID:J = -0x7ab1e491ecc1649fL
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field final prefix:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lrx/internal/util/j$1;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lrx/internal/util/j$1;-><init>()V
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
sput-object v0, Lrx/internal/util/j;->bNb:Ljava/util/concurrent/ThreadFactory;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lrx/internal/util/j;->prefix:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/Thread;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
iget-object v2, p0, Lrx/internal/util/j;->prefix:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lrx/internal/util/j;->incrementAndGet()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)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
|