All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----java.lang.Thread | +----edu.utah.janos.nodeos.NativeThread
Summary |
class NativeThread extends java.lang.Thread { // Fields 2 final Thread janosThread; private final Runnable r; // Constructors 2 NativeThread(Thread); NativeThread(Thread, Runnable); // Methods 3 static void yieldTo(NativeThread); public void run(); public String toString(); // Inner Classes 1 private static class NativeThread.NativeThreadInfo }
A "Native" Thread.
A package-private wrapper for the "native" thread layer.
This is a simple wrapper for java.lang.Thread. Its mostly a separate class so I can cleanly subclass it without exposing all of the standard java.lang.Thread methods.
Fields |
· janosThread | Summary | Top |
final Thread janosThread
The Janos Thread that wraps this native thread.
· r | Summary | Top |
private final Runnable r
The Runnable to use; otherwise defaults to the run method on this (which just invokes the JanosThread.run()).
Constructors |
· NativeThread | Summary | Top |
NativeThread(Thread janosThread)
Create a new native thread. This constructor is used to only create "implicit" threads. Implicit threads are marked as daemons.
Only called by Thread constructor.
See Also: Thread
· NativeThread | Summary | Top |
NativeThread(Thread janosThread, Runnable r)
Create a new native thread. This constructor is used to only create "explicit" threads. Explicit threads are not daemons.
The given Runnable will be used when the thread is started (instead of the run method on this).
Methods |
· yieldTo | Summary | Top |
static void yieldTo(NativeThread th)
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Thread
· run | Summary | Top |
public void run()
- Overrides:
- run in class Thread
- Implements:
- run in interface Runnable
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7