78 lines
1.7 KiB
Smali
78 lines
1.7 KiB
Smali
.class public Lcom/moji/tool/thread/constant/ThreadPoolConst;
|
|
.super Ljava/lang/Object;
|
|
.source "ThreadPoolConst.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:I
|
|
|
|
.field public static final b:I
|
|
|
|
.field public static final c:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.field private static final d:I
|
|
|
|
.field private static final e:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 11
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
|
|
|
move-result v0
|
|
|
|
sput v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->d:I
|
|
|
|
.line 12
|
|
sget v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->d:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget v1, Lcom/moji/tool/thread/constant/ThreadPoolConst;->d:I
|
|
|
|
:goto_0
|
|
sput v1, Lcom/moji/tool/thread/constant/ThreadPoolConst;->e:I
|
|
|
|
.line 19
|
|
sget v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->e:I
|
|
|
|
add-int/lit8 v0, v0, 0x6
|
|
|
|
sput v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->a:I
|
|
|
|
.line 20
|
|
sget v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->e:I
|
|
|
|
add-int/lit8 v0, v0, 0x6
|
|
|
|
sput v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->b:I
|
|
|
|
.line 26
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
sput-object v0, Lcom/moji/tool/thread/constant/ThreadPoolConst;->c:Ljava/util/concurrent/TimeUnit;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 8
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|