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

59 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes.dex */
public final class vNC {
private Object b;
private boolean c;
private LWm d;
private boolean e;
/* loaded from: classes.dex */
public interface LWm {
void e();
}
public final void c() {
synchronized (this) {
if (this.e) {
return;
}
this.e = true;
this.c = true;
LWm lWm = this.d;
if (lWm != null) {
try {
lWm.e();
} catch (Throwable th) {
synchronized (this) {
this.c = false;
notifyAll();
throw th;
}
}
}
synchronized (this) {
this.c = false;
notifyAll();
}
}
}
public final void b(LWm lWm) {
synchronized (this) {
while (this.c) {
try {
wait();
} catch (InterruptedException unused) {
}
}
if (this.d == lWm) {
return;
}
this.d = lWm;
if (this.e) {
lWm.e();
}
}
}
}