Files
rr3-apk/decompiled/sources/com/applovin/impl/sdk/p.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

68 lines
1.6 KiB
Java

package com.applovin.impl.sdk;
import com.applovin.impl.sdk.ad.AppLovinAdImpl;
import java.util.LinkedList;
import java.util.Queue;
/* loaded from: classes2.dex */
class p {
private final Queue a = new LinkedList();
private final Object b = new Object();
public void a(AppLovinAdImpl appLovinAdImpl) {
synchronized (this.b) {
try {
if (b() <= 25) {
this.a.offer(appLovinAdImpl);
} else {
n.h("AppLovinSdk", "Maximum queue capacity reached - discarding ad...");
}
} catch (Throwable th) {
throw th;
}
}
}
public int b() {
int size;
synchronized (this.b) {
size = this.a.size();
}
return size;
}
public boolean c() {
boolean z;
synchronized (this.b) {
z = b() == 0;
}
return z;
}
public AppLovinAdImpl d() {
AppLovinAdImpl appLovinAdImpl;
synchronized (this.b) {
appLovinAdImpl = (AppLovinAdImpl) this.a.peek();
}
return appLovinAdImpl;
}
public void b(AppLovinAdImpl appLovinAdImpl) {
synchronized (this.b) {
this.a.remove(appLovinAdImpl);
}
}
public AppLovinAdImpl a() {
AppLovinAdImpl appLovinAdImpl;
synchronized (this.b) {
try {
appLovinAdImpl = !c() ? (AppLovinAdImpl) this.a.poll() : null;
} catch (Throwable th) {
throw th;
}
}
return appLovinAdImpl;
}
}