Files
rr3-apk/decompiled/sources/com/mbridge/msdk/dycreator/bus/PendingPost.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

53 lines
1.4 KiB
Java

package com.mbridge.msdk.dycreator.bus;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes4.dex */
final class PendingPost {
private static final List<PendingPost> d = new ArrayList();
Object a;
Subscription b;
PendingPost c;
private PendingPost(Object obj, Subscription subscription) {
this.a = obj;
this.b = subscription;
}
public static PendingPost a(Subscription subscription, Object obj) {
List<PendingPost> list = d;
synchronized (list) {
try {
int size = list.size();
if (size > 0) {
PendingPost remove = list.remove(size - 1);
remove.a = obj;
remove.b = subscription;
remove.c = null;
return remove;
}
return new PendingPost(obj, subscription);
} catch (Throwable th) {
throw th;
}
}
}
public static void a(PendingPost pendingPost) {
pendingPost.a = null;
pendingPost.b = null;
pendingPost.c = null;
List<PendingPost> list = d;
synchronized (list) {
try {
if (list.size() < 10000) {
list.add(pendingPost);
}
} catch (Throwable th) {
throw th;
}
}
}
}