what-the-bank/sources/o/C15301gmp.java

58 lines
1.6 KiB
Java

package o;
/* renamed from: o.gmp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
final class C15301gmp {
private C15302gmq c;
private C15302gmq e;
/* JADX INFO: Access modifiers changed from: package-private */
public final void a(C15302gmq c15302gmq) {
synchronized (this) {
if (c15302gmq == null) {
throw new NullPointerException("null cannot be enqueued");
}
C15302gmq c15302gmq2 = this.c;
if (c15302gmq2 != null) {
c15302gmq2.c = c15302gmq;
this.c = c15302gmq;
} else {
if (this.e != null) {
throw new IllegalStateException("Head present, but no tail");
}
this.c = c15302gmq;
this.e = c15302gmq;
}
notifyAll();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final C15302gmq e() {
C15302gmq c15302gmq;
synchronized (this) {
c15302gmq = this.e;
if (c15302gmq != null) {
C15302gmq c15302gmq2 = c15302gmq.c;
this.e = c15302gmq2;
if (c15302gmq2 == null) {
this.c = null;
}
}
}
return c15302gmq;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final C15302gmq b() throws InterruptedException {
C15302gmq e;
synchronized (this) {
if (this.e == null) {
wait(1000L);
}
e = e();
}
return e;
}
}