no message

This commit is contained in:
2023-09-19 19:16:15 +03:00
parent 767fae2e53
commit b84e35a36b
2 changed files with 8 additions and 13 deletions

4
.idea/workspace.xml generated
View File

@@ -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" />

View File

@@ -1,19 +1,16 @@
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){ // Pass_2021 pass = new PerformSapforTasksPackage();
Thread thread = new TestThread(i); // pass.Do(Global.Home);
thread.start();
}
interruptThread.wait();
Global.Log.Print("INTERRUPT THREAD DONE");
// Pass_2021 pass = new PerformSapforTasksPackage();
// pass.Do(Global.Home);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }