org.jruby.internal.runtime
Class NativeThread
java.lang.Object
org.jruby.internal.runtime.NativeThread
- All Implemented Interfaces:
- ThreadLike
public class NativeThread
- extends java.lang.Object
- implements ThreadLike
- Author:
- cnutter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rubyThread
public RubyThread rubyThread
NativeThread
public NativeThread(RubyThread rubyThread,
IRubyObject[] args,
Block block)
NativeThread
public NativeThread(RubyThread rubyThread,
java.lang.Thread nativeThread)
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
Copyright © 2002-2007 JRuby Team. All Rights Reserved.