21 lines
619 B
Java
21 lines
619 B
Java
package com.discord.utilities.threading;
|
|
|
|
import c0.z.d.m;
|
|
import java.util.concurrent.ThreadFactory;
|
|
/* compiled from: PriorityThreadFactory.kt */
|
|
public final class PriorityThreadFactory implements ThreadFactory {
|
|
private final int threadPriority;
|
|
|
|
public PriorityThreadFactory(int i) {
|
|
this.threadPriority = i;
|
|
}
|
|
|
|
@Override // java.util.concurrent.ThreadFactory
|
|
public Thread newThread(Runnable runnable) {
|
|
m.checkNotNullParameter(runnable, "runnable");
|
|
Thread thread = new Thread(runnable);
|
|
thread.setPriority(this.threadPriority);
|
|
return thread;
|
|
}
|
|
}
|