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 ThreadLike
public void interrupt()
interrupt
in interface ThreadLike
public boolean isAlive()
isAlive
in interface ThreadLike
public void join() throws InterruptedException
join
in interface ThreadLike
InterruptedException
public void join(long timeoutMillis) throws InterruptedException
join
in interface ThreadLike
InterruptedException
public int getPriority()
getPriority
in interface ThreadLike
public void setPriority(int priority)
setPriority
in interface ThreadLike
public boolean isCurrent()
isCurrent
in interface ThreadLike
public boolean isInterrupted()
isInterrupted
in interface ThreadLike
public Thread getThread()
public Thread nativeThread()
nativeThread
in interface ThreadLike
Copyright © 2001-2017 JRuby. All Rights Reserved.