]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/src/org/simantics/graph/utils/GraphExecutor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / utils / GraphExecutor.java
1 package org.simantics.graph.utils;
2
3 import java.util.concurrent.ExecutorService;
4 import java.util.concurrent.Executors;
5
6 public class GraphExecutor {
7         public static final int EXECUTOR_THREADS = Runtime.getRuntime().availableProcessors();
8         /**
9          * A shared executor for all graph compilers.
10          */
11         public static final ExecutorService EXECUTOR = Executors.newFixedThreadPool(EXECUTOR_THREADS);
12 }