no message
This commit is contained in:
4
.idea/workspace.xml
generated
4
.idea/workspace.xml
generated
@@ -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" />
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
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);
|
||||
// Pass_2021 pass = new PerformSapforTasksPackage();
|
||||
// pass.Do(Global.Home);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user