discord-jadx/app/src/main/java/d0/v/a.java
2021-06-27 22:44:35 +02:00

49 lines
1.5 KiB
Java

package d0.v;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: Thread.kt */
public final class a {
/* compiled from: Thread.kt */
/* renamed from: d0.v.a$a reason: collision with other inner class name */
public static final class C0296a extends Thread {
public final /* synthetic */ Function0 i;
public C0296a(Function0 function0) {
this.i = function0;
}
@Override // java.lang.Thread, java.lang.Runnable
public void run() {
this.i.mo1invoke();
}
}
public static final Thread thread(boolean z2, boolean z3, ClassLoader classLoader, String str, int i, Function0<Unit> function0) {
m.checkNotNullParameter(function0, "block");
C0296a aVar = new C0296a(function0);
if (z3) {
aVar.setDaemon(true);
}
if (i > 0) {
aVar.setPriority(i);
}
if (str != null) {
aVar.setName(str);
}
if (classLoader != null) {
aVar.setContextClassLoader(classLoader);
}
if (z2) {
aVar.start();
}
return aVar;
}
public static /* synthetic */ Thread thread$default(boolean z2, boolean z3, ClassLoader classLoader, String str, int i, Function0 function0, int i2, Object obj) {
return thread((i2 & 1) != 0 ? true : z2, (i2 & 2) != 0 ? false : z3, (i2 & 4) != 0 ? null : classLoader, (i2 & 8) != 0 ? null : str, (i2 & 16) != 0 ? -1 : i, function0);
}
}