2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lrx/internal/util/a/g;
|
|
|
|
.super Lrx/internal/util/a/b;
|
|
|
|
.source "SpscLinkedAtomicQueue.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<E:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Lrx/internal/util/a/b<",
|
|
|
|
"TE;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lrx/internal/util/a/b;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lrx/internal/util/a/c;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lrx/internal/util/a/c;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lrx/internal/util/a/g;->a(Lrx/internal/util/a/c;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lrx/internal/util/a/g;->b(Lrx/internal/util/a/c;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lrx/internal/util/a/c;->lazySet(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final offer(Ljava/lang/Object;)Z
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TE;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lrx/internal/util/a/c;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lrx/internal/util/a/c;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-virtual {p0}, Lrx/internal/util/a/g;->JU()Lrx/internal/util/a/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lrx/internal/util/a/c;->lazySet(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lrx/internal/util/a/g;->a(Lrx/internal/util/a/c;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
const-string v0, "null elements not allowed"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final peek()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TE;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-virtual {p0}, Lrx/internal/util/a/g;->JW()Lrx/internal/util/a/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/internal/util/a/c;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lrx/internal/util/a/c;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, v0, Lrx/internal/util/a/c;->value:Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final poll()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TE;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-virtual {p0}, Lrx/internal/util/a/g;->JW()Lrx/internal/util/a/c;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/internal/util/a/c;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lrx/internal/util/a/c;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-virtual {v0}, Lrx/internal/util/a/c;->JX()Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lrx/internal/util/a/g;->b(Lrx/internal/util/a/c;)V
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|