AbstractFuture$SynchronizedHelper.smali
.class final Landroidx/work/impl/utils/futures/AbstractFuture$SynchronizedHelper;
.super Landroidx/work/impl/utils/futures/AbstractFuture$AtomicHelper;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/impl/utils/futures/AbstractFuture;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "SynchronizedHelper"
.end annotation
# direct methods
.method constructor <init>()V
.registers 2
const/4 v0, 0x0
.line 1135
invoke-direct {p0, v0}, Landroidx/work/impl/utils/futures/AbstractFuture$AtomicHelper;-><init>(Landroidx/work/impl/utils/futures/AbstractFuture$1;)V
return-void
.end method
# virtual methods
.method final casListeners(Landroidx/work/impl/utils/futures/AbstractFuture;Landroidx/work/impl/utils/futures/AbstractFuture$Listener;Landroidx/work/impl/utils/futures/AbstractFuture$Listener;)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/impl/utils/futures/AbstractFuture<",
"*>;",
"Landroidx/work/impl/utils/futures/AbstractFuture$Listener;",
"Landroidx/work/impl/utils/futures/AbstractFuture$Listener;",
")Z"
}
.end annotation
.line 1161
monitor-enter p1
.line 1162
:try_start_1
iget-object v0, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->listeners:Landroidx/work/impl/utils/futures/AbstractFuture$Listener;
if-ne v0, p2, :cond_a
.line 1163
iput-object p3, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->listeners:Landroidx/work/impl/utils/futures/AbstractFuture$Listener;
const/4 p2, 0x1
.line 1164
monitor-exit p1
return p2
:cond_a
const/4 p2, 0x0
.line 1166
monitor-exit p1
return p2
:catchall_d
move-exception p2
.line 1167
monitor-exit p1
:try_end_f
.catchall {:try_start_1 .. :try_end_f} :catchall_d
throw p2
.end method
.method final casValue(Landroidx/work/impl/utils/futures/AbstractFuture;Ljava/lang/Object;Ljava/lang/Object;)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/impl/utils/futures/AbstractFuture<",
"*>;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
")Z"
}
.end annotation
.line 1172
monitor-enter p1
.line 1173
:try_start_1
iget-object v0, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->value:Ljava/lang/Object;
if-ne v0, p2, :cond_a
.line 1174
iput-object p3, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->value:Ljava/lang/Object;
const/4 p2, 0x1
.line 1175
monitor-exit p1
return p2
:cond_a
const/4 p2, 0x0
.line 1177
monitor-exit p1
return p2
:catchall_d
move-exception p2
.line 1178
monitor-exit p1
:try_end_f
.catchall {:try_start_1 .. :try_end_f} :catchall_d
throw p2
.end method
.method final casWaiters(Landroidx/work/impl/utils/futures/AbstractFuture;Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/impl/utils/futures/AbstractFuture<",
"*>;",
"Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;",
"Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;",
")Z"
}
.end annotation
.line 1150
monitor-enter p1
.line 1151
:try_start_1
iget-object v0, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->waiters:Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;
if-ne v0, p2, :cond_a
.line 1152
iput-object p3, p1, Landroidx/work/impl/utils/futures/AbstractFuture;->waiters:Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;
const/4 p2, 0x1
.line 1153
monitor-exit p1
return p2
:cond_a
const/4 p2, 0x0
.line 1155
monitor-exit p1
return p2
:catchall_d
move-exception p2
.line 1156
monitor-exit p1
:try_end_f
.catchall {:try_start_1 .. :try_end_f} :catchall_d
throw p2
.end method
.method final putNext(Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;)V
.registers 3
.line 1145
iput-object p2, p1, Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;->next:Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;
return-void
.end method
.method final putThread(Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;Ljava/lang/Thread;)V
.registers 3
.line 1140
iput-object p2, p1, Landroidx/work/impl/utils/futures/AbstractFuture$Waiter;->thread:Ljava/lang/Thread;
return-void
.end method