1
2
3
4 package joeq.Scheduler;
5
6 import joeq.Class.jq_StaticMethod;
7 import joeq.Runtime.Reflection;
8
9
10
11
12
13 public class jq_MainThread extends java.lang.Thread {
14
15 jq_StaticMethod m;
16 Object arg;
17
18 /*** Creates new MainThread */
19 public jq_MainThread(jq_StaticMethod m, Object arg) {
20 this.m = m; this.arg = arg;
21 }
22
23 public void run() {
24 try {
25 Reflection.invokestatic_V(m, arg);
26 } catch (Throwable t) {
27 System.err.println("Exception occurred! "+t);
28 t.printStackTrace(System.err);
29 System.exit(-1);
30 }
31 }
32
33 }