Skip to content

Commit d681516

Browse files
committed
#463: Using 2nd Executor in AsyncTaskSolver.
For running of Solvertask a seperate ExcutorService is used in order to pipeline several SolverTask running in parallel
1 parent db28684 commit d681516

File tree

1 file changed

+20
-9
lines changed
  • code/languages/org.iets3.opensource/languages/org.iets3.analysis.base/models

1 file changed

+20
-9
lines changed

code/languages/org.iets3.opensource/languages/org.iets3.analysis.base/models/plugin.mps

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@
19231923
<property role="TrG5h" value="AsyncSolverTaskExecutor" />
19241924
<property role="3GE5qa" value="AsyncISolvable" />
19251925
<node concept="Wx3nA" id="2f_Mi5mAin2" role="jymVt">
1926-
<property role="TrG5h" value="executor" />
1926+
<property role="TrG5h" value="executorPhase1" />
19271927
<node concept="3Tm6S6" id="2f_Mi5mXft7" role="1B3o_S" />
19281928
<node concept="3uibUv" id="2f_Mi5mP0mT" role="1tU5fm">
19291929
<ref role="3uigEE" to="5zyv:~ExecutorService" resolve="ExecutorService" />
@@ -1933,6 +1933,17 @@
19331933
<ref role="1Pybhc" to="5zyv:~Executors" resolve="Executors" />
19341934
</node>
19351935
</node>
1936+
<node concept="Wx3nA" id="1rzPkCjgW6I" role="jymVt">
1937+
<property role="TrG5h" value="executorPhase2" />
1938+
<node concept="3Tm6S6" id="1rzPkCjgW6J" role="1B3o_S" />
1939+
<node concept="3uibUv" id="1rzPkCjgW6K" role="1tU5fm">
1940+
<ref role="3uigEE" to="5zyv:~ExecutorService" resolve="ExecutorService" />
1941+
</node>
1942+
<node concept="2YIFZM" id="1rzPkCjgW6L" role="33vP2m">
1943+
<ref role="37wK5l" to="5zyv:~Executors.newSingleThreadExecutor()" resolve="newSingleThreadExecutor" />
1944+
<ref role="1Pybhc" to="5zyv:~Executors" resolve="Executors" />
1945+
</node>
1946+
</node>
19361947
<node concept="2tJIrI" id="3Nwcubmg7x1" role="jymVt" />
19371948
<node concept="2tJIrI" id="1NtQ3jUg$KE" role="jymVt" />
19381949
<node concept="Wx3nA" id="7S7fpHY0LyZ" role="jymVt">
@@ -2385,8 +2396,8 @@
23852396
</node>
23862397
</node>
23872398
</node>
2388-
<node concept="37vLTw" id="6QuUnmaJ7rQ" role="37wK5m">
2389-
<ref role="3cqZAo" node="2f_Mi5mAin2" resolve="executor" />
2399+
<node concept="37vLTw" id="1rzPkCjh16I" role="37wK5m">
2400+
<ref role="3cqZAo" node="1rzPkCjgW6I" resolve="executorPhase2" />
23902401
</node>
23912402
</node>
23922403
<node concept="liA8E" id="6QuUnmaJ7rU" role="2OqNvi">
@@ -2633,7 +2644,7 @@
26332644
</node>
26342645
<node concept="3cpWs8" id="wj7bQpILu7" role="3cqZAp">
26352646
<node concept="3cpWsn" id="wj7bQpILu8" role="3cpWs9">
2636-
<property role="TrG5h" value="ErrorResult" />
2647+
<property role="TrG5h" value="errorResult" />
26372648
<node concept="3uibUv" id="wj7bQpILu9" role="1tU5fm">
26382649
<ref role="3uigEE" to="33ny:~Optional" resolve="Optional" />
26392650
<node concept="3uibUv" id="wj7bQpILua" role="11_B2D">
@@ -2708,7 +2719,7 @@
27082719
</node>
27092720
<node concept="2OqwBi" id="wj7bQpILu$" role="3clFbw">
27102721
<node concept="37vLTw" id="wj7bQpILu_" role="2Oq$k0">
2711-
<ref role="3cqZAo" node="wj7bQpILu8" resolve="ErrorResult" />
2722+
<ref role="3cqZAo" node="wj7bQpILu8" resolve="errorResult" />
27122723
</node>
27132724
<node concept="liA8E" id="wj7bQpILuA" role="2OqNvi">
27142725
<ref role="37wK5l" to="33ny:~Optional.isPresent()" resolve="isPresent" />
@@ -2961,7 +2972,7 @@
29612972
<ref role="3cqZAo" node="6QuUnmaOKGg" resolve="cancellableSupplier" />
29622973
</node>
29632974
<node concept="37vLTw" id="6QuUnmaUlF4" role="37wK5m">
2964-
<ref role="3cqZAo" node="2f_Mi5mAin2" resolve="executor" />
2975+
<ref role="3cqZAo" node="2f_Mi5mAin2" resolve="executorPhase1" />
29652976
</node>
29662977
</node>
29672978
<node concept="liA8E" id="6QuUnmaUlF5" role="2OqNvi">
@@ -3451,11 +3462,11 @@
34513462
<node concept="3J1_TO" id="3NwcubmgRSi" role="3cqZAp">
34523463
<node concept="3clFbS" id="3NwcubmgRSj" role="1zxBo7">
34533464
<node concept="3cpWs6" id="3NwcubmgRSk" role="3cqZAp">
3454-
<node concept="2OqwBi" id="6qfl24pYM5Q" role="3cqZAk">
3455-
<node concept="37vLTw" id="6qfl24pYM5R" role="2Oq$k0">
3465+
<node concept="2OqwBi" id="1rzPkCjjukQ" role="3cqZAk">
3466+
<node concept="37vLTw" id="1rzPkCjjukR" role="2Oq$k0">
34563467
<ref role="3cqZAo" node="3NwcubmgRRG" resolve="buffer" />
34573468
</node>
3458-
<node concept="liA8E" id="6qfl24pYM5S" role="2OqNvi">
3469+
<node concept="liA8E" id="1rzPkCjjukS" role="2OqNvi">
34593470
<ref role="37wK5l" to="5zyv:~LinkedBlockingQueue.take()" resolve="take" />
34603471
</node>
34613472
</node>

0 commit comments

Comments
 (0)