View Javadoc

1   // Thread.java, created Fri Apr  5 18:36:41 2002 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.ClassLib.sun14_win32.java.lang;
5   
6   import joeq.Scheduler.jq_Thread;
7   
8   /*
9    * @author  John Whaley <jwhaley@alum.mit.edu>
10   * @version $Id: Thread.java 1451 2004-03-09 06:27:08Z jwhaley $
11   */
12  public abstract class Thread {
13  
14      public final jq_Thread jq_thread;
15      
16      private void init(java.lang.ThreadGroup g, java.lang.Runnable target, java.lang.String name) {
17          this.init(g, target, name, 0L);
18      }
19      private native void init(java.lang.ThreadGroup g, java.lang.Runnable target, java.lang.String name, long stackSize);
20      
21      public Thread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name, long stackSize) {
22          java.lang.Object o = this;
23          jq_Thread t = new jq_Thread((java.lang.Thread)o);
24          this.jq_thread = t;
25          this.init(group, target, name, stackSize);
26          t.init();
27      }
28      
29  }