package com.bumptech.glide.load.engine;

import java.util.concurrent.ThreadFactory;

/* JADX INFO: loaded from: classes.dex */
public final class a implements ThreadFactory {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f5644a;

    public /* synthetic */ a(int i10) {
        this.f5644a = i10;
    }

    @Override // java.util.concurrent.ThreadFactory
    public final Thread newThread(Runnable runnable) {
        switch (this.f5644a) {
            case 0:
                return new Thread(new l.l(this, runnable, 12), "glide-active-resources");
            default:
                return new s1.h(this, runnable);
        }
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ a() {
        this(1);
        this.f5644a = 1;
    }
}
