public class ThreadService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ThreadService.Event
Deprecated.
|
Constructor and Description |
---|
ThreadService(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
void |
associateThread(java.lang.Object threadOrFuture,
RubyThread rubyThread) |
void |
deliverEvent(RubyThread sender,
RubyThread target,
ThreadService.Event event)
Deprecated.
|
void |
disposeCurrentThread() |
void |
dissociateThread(java.lang.Object threadOrFuture)
Deprecated.
|
RubyThread[] |
getActiveRubyThreads() |
boolean |
getCritical() |
ThreadContext |
getCurrentContext()
In order to provide an appropriate execution context for a given thread,
we store ThreadContext instances in a threadlocal.
|
RubyThread |
getMainThread() |
boolean |
getPolling()
Deprecated.
|
java.lang.ThreadGroup |
getRubyThreadGroup()
Deprecated.
|
java.util.Map<java.lang.Object,RubyThread> |
getRubyThreadMap()
Deprecated.
|
ThreadContext |
getThreadContextForThread(RubyThread thread)
Deprecated.
|
void |
initMainThread() |
ThreadContext |
registerNewThread(RubyThread thread) |
void |
setCritical(boolean critical) |
void |
setCurrentContext(ThreadContext context)
Deprecated.
|
void |
setMainThread(java.lang.Thread thread,
RubyThread rubyThread) |
void |
unregisterThread(RubyThread thread) |
public ThreadService(Ruby runtime)
public void disposeCurrentThread()
public void initMainThread()
public final ThreadContext getCurrentContext()
public RubyThread getMainThread()
public void setMainThread(java.lang.Thread thread, RubyThread rubyThread)
public RubyThread[] getActiveRubyThreads()
public ThreadContext registerNewThread(RubyThread thread)
public void associateThread(java.lang.Object threadOrFuture, RubyThread rubyThread)
public void unregisterThread(RubyThread thread)
public void setCritical(boolean critical)
public boolean getCritical()
@Deprecated public java.util.Map<java.lang.Object,RubyThread> getRubyThreadMap()
@Deprecated public void deliverEvent(RubyThread sender, RubyThread target, ThreadService.Event event)
@Deprecated public java.lang.ThreadGroup getRubyThreadGroup()
@Deprecated public ThreadContext getThreadContextForThread(RubyThread thread)
@Deprecated public void dissociateThread(java.lang.Object threadOrFuture)
@Deprecated public final void setCurrentContext(ThreadContext context)
@Deprecated public boolean getPolling()
Copyright © 2001-2018 JRuby. All Rights Reserved.