org.jruby.internal.runtime
Class NativeThread

java.lang.Object
  extended by org.jruby.internal.runtime.NativeThread
All Implemented Interfaces:
ThreadLike

public class NativeThread
extends java.lang.Object
implements ThreadLike

Author:
cnutter

Field Summary
 RubyThread rubyThread
           
 
Constructor Summary
NativeThread(RubyThread rubyThread, IRubyObject[] args, Block block)
           
NativeThread(RubyThread rubyThread, java.lang.Thread nativeThread)
           
 
Method Summary
 int getPriority()
           
 void interrupt()
           
 boolean isAlive()
           
 boolean isCurrent()
           
 boolean isInterrupted()
           
 void join()
           
 void join(long timeoutMillis)
           
 void setPriority(int priority)
           
 void start()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rubyThread

public RubyThread rubyThread
Constructor Detail

NativeThread

public NativeThread(RubyThread rubyThread,
                    IRubyObject[] args,
                    Block block)

NativeThread

public NativeThread(RubyThread rubyThread,
                    java.lang.Thread nativeThread)
Method Detail

start

public void start()
Specified by:
start in interface ThreadLike

interrupt

public void interrupt()
Specified by:
interrupt in interface ThreadLike

isAlive

public boolean isAlive()
Specified by:
isAlive in interface ThreadLike

join

public void join()
          throws java.lang.InterruptedException
Specified by:
join in interface ThreadLike
Throws:
java.lang.InterruptedException

join

public void join(long timeoutMillis)
          throws java.lang.InterruptedException
Specified by:
join in interface ThreadLike
Throws:
java.lang.InterruptedException

getPriority

public int getPriority()
Specified by:
getPriority in interface ThreadLike

setPriority

public void setPriority(int priority)
Specified by:
setPriority in interface ThreadLike

isCurrent

public boolean isCurrent()
Specified by:
isCurrent in interface ThreadLike

isInterrupted

public boolean isInterrupted()
Specified by:
isInterrupted in interface ThreadLike

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2007 JRuby Team. All Rights Reserved.