Files
rr3-apk/decompiled/sources/com/mbridge/msdk/dycreator/bus/HandlerPoster.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

65 lines
1.9 KiB
Java

package com.mbridge.msdk.dycreator.bus;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
/* loaded from: classes4.dex */
final class HandlerPoster extends Handler {
private final PendingPostQueue a;
private final int b;
private final EventBus c;
private boolean d;
public HandlerPoster(EventBus eventBus, Looper looper, int i) {
super(looper);
this.c = eventBus;
this.b = i;
this.a = new PendingPostQueue();
}
public final void a(Subscription subscription, Object obj) {
PendingPost a = PendingPost.a(subscription, obj);
synchronized (this) {
try {
this.a.a(a);
if (!this.d) {
this.d = true;
if (!sendMessage(obtainMessage())) {
throw new EventBusException("Could not send handler message");
}
}
} finally {
}
}
}
@Override // android.os.Handler
public final void handleMessage(Message message) {
try {
long uptimeMillis = SystemClock.uptimeMillis();
do {
PendingPost a = this.a.a();
if (a == null) {
synchronized (this) {
a = this.a.a();
if (a == null) {
this.d = false;
return;
}
}
}
this.c.a(a);
} while (SystemClock.uptimeMillis() - uptimeMillis < this.b);
if (!sendMessage(obtainMessage())) {
throw new EventBusException("Could not send handler message");
}
this.d = true;
} catch (Throwable th) {
this.d = false;
throw th;
}
}
}