2020-11-05 20:51:11 +00:00
|
|
|
.class public final Lk0/l/c/a$b;
|
2020-05-17 12:40:10 +00:00
|
|
|
.super Lrx/Scheduler$Worker;
|
|
|
|
.source "CachedThreadScheduler.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/functions/Action0;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-11-05 20:51:11 +00:00
|
|
|
value = Lk0/l/c/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "b"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final d:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
.field public final e:Lk0/l/c/a$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
.field public final f:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-05 20:51:11 +00:00
|
|
|
.method public constructor <init>(Lk0/l/c/a$a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lrx/Scheduler$Worker;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lrx/subscriptions/CompositeSubscription;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iput-object v0, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iput-object p1, p0, Lk0/l/c/a$b;->e:Lk0/l/c/a$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iput-object v0, p0, Lk0/l/c/a$b;->g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p1, Lk0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
sget-object p1, Lk0/l/c/a;->e:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p1, Lk0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p1, Lk0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
check-cast v0, Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-05 20:51:11 +00:00
|
|
|
new-instance v0, Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v1, p1, Lk0/l/c/a$a;->a:Ljava/util/concurrent/ThreadFactory;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-direct {v0, v1}, Lk0/l/c/a$c;-><init>(Ljava/util/concurrent/ThreadFactory;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object p1, p1, Lk0/l/c/a$a;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:goto_1
|
2020-11-05 20:51:11 +00:00
|
|
|
iput-object p1, p0, Lk0/l/c/a$b;->f:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a(Lrx/functions/Action0;)Lrx/Subscription;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-virtual {p0, p1, v0, v1, v2}, Lk0/l/c/a$b;->b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public b(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 2
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
sget-object p1, Lk0/r/c;->a:Lk0/r/c$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->f:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
new-instance v1, Lk0/l/c/a$b$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lk0/l/c/a$b$a;-><init>(Lk0/l/c/a$b;Lrx/functions/Action0;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-virtual {v0, v1, p2, p3, p4}, Lk0/l/c/g;->f(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lk0/l/c/i;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object p2, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Lrx/subscriptions/CompositeSubscription;->a(Lrx/Subscription;)V
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object p2, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object p3, p1, Lk0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
new-instance p4, Lk0/l/c/i$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-direct {p4, p1, p2}, Lk0/l/c/i$c;-><init>(Lk0/l/c/i;Lrx/subscriptions/CompositeSubscription;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-virtual {p3, p4}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public call()V
|
|
|
|
.locals 6
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->e:Lk0/l/c/a$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v1, p0, Lk0/l/c/a$b;->f:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-wide v4, v0, Lk0/l/c/a$a;->b:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iput-wide v2, v1, Lk0/l/c/a$c;->l:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, v0, Lk0/l/c/a$a;->c:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
throw v0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isUnsubscribed()Z
|
|
|
|
.locals 1
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-boolean v0, v0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public unsubscribe()V
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->g:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->f:Lk0/l/c/a$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-05 20:51:11 +00:00
|
|
|
invoke-virtual {v0, p0}, Lk0/l/c/g;->a(Lrx/functions/Action0;)Lrx/Subscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-11-05 20:51:11 +00:00
|
|
|
iget-object v0, p0, Lk0/l/c/a$b;->d:Lrx/subscriptions/CompositeSubscription;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/CompositeSubscription;->unsubscribe()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|