OSDN Git Service

ea5d84694ce8ffd7772d3e1ad5c59d8cf1bb59fb
[pf3gnuchains/gcc-fork.git] / libjava / java / lang / FirstThread.java
1 // FirstThread.java - Implementation of very first thread.
2
3 /* Copyright (C) 1998, 1999  Cygnus Solutions
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 package java.lang;
12
13 /**
14  * @author Tom Tromey <tromey@cygnus.com>
15  * @date August 24, 1998 
16  */
17
18 // This is entirely internal to our implementation.
19
20 final class FirstThread extends Thread
21 {
22   public native void run ();
23
24   public FirstThread (ThreadGroup g, Class k, Object o)
25   {
26     super (g, null, "main");
27     klass = k;
28     klass_name = null;
29     args = o;
30   }
31
32   public FirstThread (ThreadGroup g, String class_name, Object o)
33   {
34     super (g, null, "main");
35     klass = null;
36     klass_name = class_name;
37     args = o;
38   }
39
40   private static void die (String s)
41   {
42     System.err.println(s);
43     System.exit(1);
44   }
45
46   // Private data.
47   private Class klass;
48   private String klass_name;
49   private Object args;
50 }