mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 23:01:07 +00:00
Multicore utils
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.volmit.iris.gen.v2.scaffold.multicore;
|
||||
|
||||
import com.volmit.iris.gen.v2.scaffold.hunk.Hunk;
|
||||
|
||||
public interface BurstedHunk<T> extends Hunk<T>
|
||||
{
|
||||
public int getOffsetX();
|
||||
|
||||
public int getOffsetY();
|
||||
|
||||
public int getOffsetZ();
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import java.util.concurrent.Executors;
|
||||
|
||||
public class MultiBurst
|
||||
{
|
||||
public static MultiBurst burst = new MultiBurst(Runtime.getRuntime().availableProcessors());
|
||||
private ExecutorService service;
|
||||
|
||||
public MultiBurst(int tc)
|
||||
|
||||
Reference in New Issue
Block a user