mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-26 06:53:26 +00:00
Reuse the ForkJoinPool in ItemList
This commit is contained in:
1 parent
458947628c
commit
4c37971a2b
3 files changed
+4
-12
No files matched your search
@@ -29,16 +29,6 @@ import java.util.concurrent.ForkJoinPool;
|
||||
|
||||
public abstract class GuiRecipe extends GuiContainer implements IGuiContainerOverlay, IGuiClientSide, IGuiHandleMouseWheel, IContainerTooltipHandler
|
||||
{
|
||||
protected static final ForkJoinPool forkJoinPool;
|
||||
|
||||
static {
|
||||
int poolSize = Runtime.getRuntime().availableProcessors() * 2 / 3;
|
||||
if (poolSize < 1)
|
||||
poolSize = 1;
|
||||
|
||||
forkJoinPool = new ForkJoinPool(poolSize);
|
||||
}
|
||||
|
||||
public ArrayList<? extends IRecipeHandler> currenthandlers = new ArrayList<>();
|
||||
|
||||
public int page;
|
||||
|
||||
Reference in new issue
Block a user