diff options
Diffstat (limited to 'libjava/gnu/gcj/runtime/FinalizerThread.java')
-rw-r--r-- | libjava/gnu/gcj/runtime/FinalizerThread.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libjava/gnu/gcj/runtime/FinalizerThread.java b/libjava/gnu/gcj/runtime/FinalizerThread.java new file mode 100644 index 000000000..c9a917cd2 --- /dev/null +++ b/libjava/gnu/gcj/runtime/FinalizerThread.java @@ -0,0 +1,32 @@ +// FinalizerThread.java -- Thread in which finalizers are run. + +/* Copyright (C) 2001, 2004 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +package gnu.gcj.runtime; + +/** + * @author Tom Tromey <tromey@redhat.com> + * @date October 3, 2001 + */ +public final class FinalizerThread extends Thread +{ + private static boolean finalizer_ready; + + public FinalizerThread () + { + super ("LibgcjInternalFinalizerThread"); + setDaemon (true); + finalizer_ready = false; + init(); + } + + private native void init(); + static native void finalizerReady(); + public native void run(); +} |