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 name="ChangeListManager">
<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$/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>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@@ -1,17 +1,14 @@
package Common.ModesSupervisors;
import Common.Global;
import Common.Utils.InterruptThread;
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() {
try {
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.Do(Global.Home);
} catch (Exception ex) {