- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
package com.google.firebase.messaging.threads;
|
|
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.Executors;
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
import java.util.concurrent.ThreadFactory;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class PoolableExecutors {
|
|
public static final ExecutorFactory DEFAULT_INSTANCE;
|
|
public static volatile ExecutorFactory instance;
|
|
|
|
public static ExecutorFactory factory() {
|
|
return instance;
|
|
}
|
|
|
|
static {
|
|
DefaultExecutorFactory defaultExecutorFactory = new DefaultExecutorFactory();
|
|
DEFAULT_INSTANCE = defaultExecutorFactory;
|
|
instance = defaultExecutorFactory;
|
|
}
|
|
|
|
public static class DefaultExecutorFactory implements ExecutorFactory {
|
|
public DefaultExecutorFactory() {
|
|
}
|
|
|
|
public ExecutorService newThreadPool(int i, ThreadFactory threadFactory, ThreadPriority threadPriority) {
|
|
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(i, i, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), threadFactory);
|
|
threadPoolExecutor.allowCoreThreadTimeOut(true);
|
|
return Executors.unconfigurableExecutorService(threadPoolExecutor);
|
|
}
|
|
|
|
@Override // com.google.firebase.messaging.threads.ExecutorFactory
|
|
public ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory, ThreadPriority threadPriority) {
|
|
return newThreadPool(1, threadFactory, threadPriority);
|
|
}
|
|
}
|
|
}
|