alexandroid/decompiled/jadx/sources/com/google/android/gms/tasks/zzr.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

48 lines
1.4 KiB
Java

package com.google.android.gms.tasks;
import androidx.annotation.NonNull;
import java.util.ArrayDeque;
import java.util.Queue;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes7.dex */
final class zzr {
private final Object zza = new Object();
private Queue zzb;
private boolean zzc;
public final void zza(@NonNull zzq zzqVar) {
synchronized (this.zza) {
try {
if (this.zzb == null) {
this.zzb = new ArrayDeque();
}
this.zzb.add(zzqVar);
} catch (Throwable th) {
throw th;
}
}
}
public final void zzb(@NonNull Task task) {
zzq zzqVar;
synchronized (this.zza) {
if (this.zzb != null && !this.zzc) {
this.zzc = true;
while (true) {
synchronized (this.zza) {
try {
zzqVar = (zzq) this.zzb.poll();
if (zzqVar == null) {
this.zzc = false;
return;
}
} finally {
}
}
zzqVar.zzd(task);
}
}
}
}
}