package tp;

/* loaded from: classes3.dex */
public final class t2 {

    /* renamed from: a, reason: collision with root package name */
    public static final t2 f36590a = new t2();

    /* renamed from: b, reason: collision with root package name */
    private static final ThreadLocal f36591b = zp.m0.a(new zp.h0("ThreadLocalEventLoop"));

    private t2() {
    }

    public final e1 a() {
        return (e1) f36591b.get();
    }

    public final e1 b() {
        ThreadLocal threadLocal = f36591b;
        e1 e1Var = (e1) threadLocal.get();
        if (e1Var != null) {
            return e1Var;
        }
        e1 a10 = h1.a();
        threadLocal.set(a10);
        return a10;
    }

    public final void c() {
        f36591b.set(null);
    }

    public final void d(e1 e1Var) {
        f36591b.set(e1Var);
    }
}
