64 lines
2.0 KiB
Java
64 lines
2.0 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.logging.Level;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.gml, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class RunnableC15297gml implements Runnable, InterfaceC15303gmr {
|
||
|
private volatile boolean b;
|
||
|
private final C15301gmp c = new C15301gmp();
|
||
|
private final C15296gmk d;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public RunnableC15297gml(C15296gmk c15296gmk) {
|
||
|
this.d = c15296gmk;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC15303gmr
|
||
|
public final void a(C15310gmy c15310gmy, Object obj) {
|
||
|
C15302gmq c = C15302gmq.c(c15310gmy, obj);
|
||
|
synchronized (this) {
|
||
|
this.c.a(c);
|
||
|
if (!this.b) {
|
||
|
this.b = true;
|
||
|
this.d.d.execute(this);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
while (true) {
|
||
|
try {
|
||
|
C15302gmq b = this.c.b();
|
||
|
if (b == null) {
|
||
|
synchronized (this) {
|
||
|
b = this.c.e();
|
||
|
if (b == null) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
C15296gmk c15296gmk = this.d;
|
||
|
Object obj = b.e;
|
||
|
C15310gmy c15310gmy = b.b;
|
||
|
C15302gmq.c(b);
|
||
|
if (c15310gmy.d) {
|
||
|
c15296gmk.a(c15310gmy, obj);
|
||
|
}
|
||
|
} catch (InterruptedException e) {
|
||
|
InterfaceC15299gmn interfaceC15299gmn = this.d.b;
|
||
|
Level level = Level.WARNING;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(Thread.currentThread().getName());
|
||
|
sb.append(" was interruppted");
|
||
|
interfaceC15299gmn.b(level, sb.toString(), e);
|
||
|
return;
|
||
|
} finally {
|
||
|
this.b = false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|