]> gcc.gnu.org Git - gcc.git/blob - libjava/gnu/gcj/runtime/FirstThread.java
acinclude.m4 ((GLIBCPP_CHECK_MATH_SUPPORT): Revert last change.
[gcc.git] / libjava / gnu / gcj / runtime / FirstThread.java
1 // FirstThread.java - Implementation of very first thread.
2
3 /* Copyright (C) 1998, 1999 Free Software Foundation
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 gnu.gcj.runtime;
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 }
This page took 0.041035 seconds and 5 git commands to generate.