202 lines
5.3 KiB
Smali
202 lines
5.3 KiB
Smali
.class public final Lrx/internal/a/t;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lrx/Observable$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/Observable$a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final coA:Lrx/b/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/b/b<",
|
|
"+TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field volatile coB:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
.field final coC:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
.field final lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/b/b;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/b/b<",
|
|
"+TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-direct {v0}, Lrx/subscriptions/CompositeSubscription;-><init>()V
|
|
|
|
iput-object v0, p0, Lrx/internal/a/t;->coB:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lrx/internal/a/t;->coC:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
new-instance v0, Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantLock;-><init>()V
|
|
|
|
iput-object v0, p0, Lrx/internal/a/t;->lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
iput-object p1, p0, Lrx/internal/a/t;->coA:Lrx/b/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lrx/internal/a/t;)Lrx/b/b;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lrx/internal/a/t;->coA:Lrx/b/b;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final a(Lrx/Subscriber;Lrx/subscriptions/CompositeSubscription;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;",
|
|
"Lrx/subscriptions/CompositeSubscription;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lrx/internal/a/t$3;
|
|
|
|
invoke-direct {v0, p0, p2}, Lrx/internal/a/t$3;-><init>(Lrx/internal/a/t;Lrx/subscriptions/CompositeSubscription;)V
|
|
|
|
invoke-static {v0}, Lrx/subscriptions/c;->g(Lrx/functions/Action0;)Lrx/Subscription;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/t;->coA:Lrx/b/b;
|
|
|
|
new-instance v1, Lrx/internal/a/t$2;
|
|
|
|
invoke-direct {v1, p0, p1, p1, p2}, Lrx/internal/a/t$2;-><init>(Lrx/internal/a/t;Lrx/Subscriber;Lrx/Subscriber;Lrx/subscriptions/CompositeSubscription;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/b/b;->a(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final synthetic call(Ljava/lang/Object;)V
|
|
.locals 3
|
|
|
|
check-cast p1, Lrx/Subscriber;
|
|
|
|
iget-object v0, p0, Lrx/internal/a/t;->lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantLock;->lock()V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/t;->coC:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lrx/internal/a/t;->coA:Lrx/b/b;
|
|
|
|
new-instance v2, Lrx/internal/a/t$1;
|
|
|
|
invoke-direct {v2, p0, p1, v0}, Lrx/internal/a/t$1;-><init>(Lrx/internal/a/t;Lrx/Subscriber;Ljava/util/concurrent/atomic/AtomicBoolean;)V
|
|
|
|
invoke-virtual {v1, v2}, Lrx/b/b;->c(Lrx/functions/Action1;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
:goto_0
|
|
iget-object p1, p0, Lrx/internal/a/t;->lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantLock;->unlock()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/t;->lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantLock;->unlock()V
|
|
|
|
:cond_1
|
|
throw p1
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
iget-object v0, p0, Lrx/internal/a/t;->coB:Lrx/subscriptions/CompositeSubscription;
|
|
|
|
invoke-virtual {p0, p1, v0}, Lrx/internal/a/t;->a(Lrx/Subscriber;Lrx/subscriptions/CompositeSubscription;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/t;->lock:Ljava/util/concurrent/locks/ReentrantLock;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantLock;->unlock()V
|
|
|
|
throw p1
|
|
.end method
|