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)
Deprecated.
|
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 final RubyThread rubyThread
@Deprecated 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 final Thread getThread()
public Thread nativeThread()
nativeThread in interface ThreadLikeCopyright © 2001-2016 JRuby. All Rights Reserved.