package a0;

import java.util.PriorityQueue;

/* JADX INFO: loaded from: classes.dex */
public final class t {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final t f2022d = new t();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final Object f2023a = new Object();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final PriorityQueue f2024b = new PriorityQueue();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private int f2025c = Integer.MAX_VALUE;

    private t() {
    }

    public void a(int i2) {
        synchronized (this.f2023a) {
            this.f2024b.add(Integer.valueOf(i2));
            this.f2025c = Math.min(this.f2025c, i2);
        }
    }

    public void b(int i2) {
        synchronized (this.f2023a) {
            this.f2024b.remove(Integer.valueOf(i2));
            this.f2025c = this.f2024b.isEmpty() ? Integer.MAX_VALUE : ((Integer) this.f2024b.peek()).intValue();
            this.f2023a.notifyAll();
        }
    }
}
