public class NativeThread extends Object implements ThreadLike
| Modifier and Type | Field and Description |
|---|---|
RubyThread |
rubyThread |
| Constructor and Description |
|---|
NativeThread(RubyThread rubyThread,
IRubyObject[] args,
Block block) |
NativeThread(RubyThread rubyThread,
Thread nativeThread) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority() |
Thread |
getThread() |
void |
interrupt() |
boolean |
isAlive() |
boolean |
isCurrent() |
boolean |
isInterrupted() |
void |
join() |
void |
join(long timeoutMillis) |
Thread |
nativeThread() |
void |
setPriority(int priority) |
void |
start() |
String |
toString() |
public RubyThread rubyThread
public NativeThread(RubyThread rubyThread, IRubyObject[] args, Block block)
public NativeThread(RubyThread rubyThread, Thread nativeThread)
public void start()
start in interface ThreadLikepublic void interrupt()
interrupt in interface ThreadLikepublic boolean isAlive()
isAlive in interface ThreadLikepublic void join()
throws InterruptedException
join in interface ThreadLikeInterruptedExceptionpublic void join(long timeoutMillis)
throws InterruptedException
join in interface ThreadLikeInterruptedExceptionpublic int getPriority()
getPriority in interface ThreadLikepublic void setPriority(int priority)
setPriority in interface ThreadLikepublic boolean isCurrent()
isCurrent in interface ThreadLikepublic boolean isInterrupted()
isInterrupted in interface ThreadLikepublic Thread getThread()
public Thread nativeThread()
nativeThread in interface ThreadLikeCopyright © 2001-2015 JRuby. All Rights Reserved.