Package | Description |
---|---|
org.jruby | |
org.jruby.ext.fiber | |
org.jruby.internal.runtime | |
org.jruby.runtime | |
org.jruby.util.io |
Modifier and Type | Method and Description |
---|---|
static RubyThread |
RubyThread.adopt(IRubyObject recv,
Thread t) |
static RubyThread |
RubyThread.current(IRubyObject recv) |
static RubyThread |
RubyThread.main(IRubyObject recv) |
static RubyThread |
RubyThread.mainThread(IRubyObject receiver) |
static RubyThread |
RubyThread.start(IRubyObject recv,
IRubyObject[] args,
Block block)
Basically the same as Thread.new .
|
static RubyThread |
RubyThread.start19(IRubyObject recv,
IRubyObject[] args,
Block block) |
RubyThread |
RubyThread.wakeup() |
Modifier and Type | Method and Description |
---|---|
void |
RubyIO.addBlockingThread(RubyThread thread)
Add a thread to the list of blocking threads for this IO.
|
IRubyObject |
RubyThread.genericRaise(Ruby runtime,
IRubyObject[] args,
RubyThread currentThread) |
void |
RubyThreadGroup.remove(RubyThread rubyThread) |
void |
RubyIO.removeBlockingThread(RubyThread thread)
Remove a thread from the list of blocking threads for this IO.
|
void |
RubyThread.Unblocker.wakeup(RubyThread thread,
Data self) |
void |
RubyThread.Task.wakeup(RubyThread thread,
Data data) |
Modifier and Type | Method and Description |
---|---|
RubyThread |
ThreadFiber.getThread() |
Modifier and Type | Field and Description |
---|---|
RubyThread |
NativeThread.rubyThread |
Modifier and Type | Method and Description |
---|---|
RubyThread[] |
ThreadService.getActiveRubyThreads() |
RubyThread |
ThreadService.getMainThread() |
RubyThread |
RubyRunnable.getRubyThread()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<Object,RubyThread> |
ThreadService.getRubyThreadMap()
Get the map from threadlike objects to RubyThread instances.
|
Modifier and Type | Method and Description |
---|---|
void |
ThreadService.associateThread(Object threadOrFuture,
RubyThread rubyThread) |
void |
ThreadService.deliverEvent(RubyThread sender,
RubyThread target,
ThreadService.Event event)
Deprecated.
|
ThreadContext |
ThreadService.getThreadContextForThread(RubyThread thread) |
static ThreadService.Event |
ThreadService.Event.kill(RubyThread sender,
RubyThread target,
ThreadService.Event.Type type)
Deprecated.
|
static ThreadService.Event |
ThreadService.Event.raise(RubyThread sender,
RubyThread target,
ThreadService.Event.Type type,
IRubyObject exception)
Deprecated.
|
ThreadContext |
ThreadService.registerNewThread(RubyThread thread) |
void |
ThreadService.setMainThread(Thread thread,
RubyThread rubyThread) |
void |
ThreadService.unregisterThread(RubyThread thread) |
static ThreadService.Event |
ThreadService.Event.wakeup(RubyThread sender,
RubyThread target,
ThreadService.Event.Type type)
Deprecated.
|
Constructor and Description |
---|
NativeThread(RubyThread rubyThread,
IRubyObject[] args,
Block block) |
NativeThread(RubyThread rubyThread,
Thread nativeThread) |
RubyRunnable(RubyThread rubyThread,
IRubyObject[] args,
Block currentBlock) |
Modifier and Type | Method and Description |
---|---|
RubyThread |
ThreadContext.getFiberCurrentThread() |
RubyThread |
ThreadContext.getThread() |
Modifier and Type | Method and Description |
---|---|
void |
ThreadContext.setRootThread(RubyThread rootThread) |
void |
ThreadContext.setThread(RubyThread thread) |
Modifier and Type | Field and Description |
---|---|
protected List<RubyThread> |
OpenFile.blockingThreads |
Modifier and Type | Method and Description |
---|---|
void |
OpenFile.addBlockingThread(RubyThread thread)
Add a thread to the list of blocking threads for this IO.
|
boolean |
OpenFile.ready(Ruby runtime,
RubyThread thread,
int ops,
long timeout)
Wait until the channel is available for the given operations or the timeout expires.
|
void |
OpenFile.removeBlockingThread(RubyThread thread)
Remove a thread from the list of blocking threads for this IO.
|
Copyright © 2001-2015 JRuby. All Rights Reserved.