Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -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;
}
}