what-the-bank/sources/o/ThreadFactoryC13387fYz.java

55 lines
1.5 KiB
Java

package o;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicLong;
/* renamed from: o.fYz, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ThreadFactoryC13387fYz extends AtomicLong implements ThreadFactory {
private boolean a;
private String c;
private int e;
public ThreadFactoryC13387fYz(String str) {
this(str, 5, false);
}
public ThreadFactoryC13387fYz(String str, int i) {
this(str, i, false);
}
public ThreadFactoryC13387fYz(String str, int i, boolean z) {
this.c = str;
this.e = i;
this.a = z;
}
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
StringBuilder sb = new StringBuilder(this.c);
sb.append('-');
sb.append(incrementAndGet());
String obj = sb.toString();
Thread lWm = this.a ? new LWm(runnable, obj) : new Thread(runnable, obj);
lWm.setPriority(this.e);
lWm.setDaemon(true);
return lWm;
}
@Override // java.util.concurrent.atomic.AtomicLong
public final String toString() {
StringBuilder sb = new StringBuilder("RxThreadFactory[");
sb.append(this.c);
sb.append("]");
return sb.toString();
}
/* renamed from: o.fYz$LWm */
/* loaded from: classes.dex */
static final class LWm extends Thread {
LWm(Runnable runnable, String str) {
super(runnable, str);
}
}
}