no message
This commit is contained in:
4
.idea/workspace.xml
generated
4
.idea/workspace.xml
generated
@@ -7,10 +7,8 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/src/Common/ModesSupervisors/PackageModeSupervisor.java" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/Common/ModesSupervisors/TestThread.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Common/Global.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Global.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/ModesSupervisors/PackageModeSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/ModesSupervisors/PackageModeSupervisor.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
package Common.ModesSupervisors;
|
package Common.ModesSupervisors;
|
||||||
import Common.Global;
|
|
||||||
import Common.Utils.InterruptThread;
|
import Common.Utils.InterruptThread;
|
||||||
public class PackageModeSupervisor {
|
public class PackageModeSupervisor {
|
||||||
protected Thread interruptThread = new InterruptThread(5000, () -> {System.exit(0);return null;});
|
protected Thread interruptThread = new InterruptThread(5000, () -> {
|
||||||
|
System.exit(0);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
protected int kernels = 4;
|
||||||
public void Start() {
|
public void Start() {
|
||||||
try {
|
try {
|
||||||
interruptThread.start();
|
interruptThread.start();
|
||||||
for (int i=1; i<=3; ++i){
|
|
||||||
Thread thread = new TestThread(i);
|
|
||||||
thread.start();
|
|
||||||
}
|
|
||||||
interruptThread.wait();
|
|
||||||
Global.Log.Print("INTERRUPT THREAD DONE");
|
|
||||||
// Pass_2021 pass = new PerformSapforTasksPackage();
|
// Pass_2021 pass = new PerformSapforTasksPackage();
|
||||||
// pass.Do(Global.Home);
|
// pass.Do(Global.Home);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user