This commit is contained in:
Ilia Kurtov 2017-05-26 17:05:26 +03:00
parent 5af24c4d30
commit 6eaa7fe987
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public final class ProcessPriorityThreadFactory implements ThreadFactory {
}
@Override
@NonNull
public Thread newThread(@NonNull final Runnable runnable) {
final Thread thread = new Thread(runnable);
thread.setPriority(threadPriority);