| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile ThreadFiber. | |
| private static final BiConsumer | |
| private static final String[] | |
| private static final Logger | |
| private static final ThreadFiber. | |
| pack-priv final boolean | |
| pack-priv RubyHash | |
| pack-priv volatile RubyThread | |
| private static final MethodHandle |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| private static void | adjustThreadBlocking(ThreadContext context, ThreadFiber.
|
| pack-priv final boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| private void | |
| pack-priv static RubyThread | createThread(ThreadContext context, final ThreadFiber.
|
| public static IRubyObject | |
| private void | |
| private static ThreadFiber. | exchangeWithFiber(ThreadContext context, ThreadFiber.
|
| private static void | |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public Map | |
| public ThreadFiber. | |
| public RubyThread | |
| private static void | handleExceptionDuringExchange(ThreadContext context, ThreadFiber.
Handle exceptions raised while exchanging data with a fiber. |
| public void | |
| public IRubyObject | |
| public IRubyObject | |
| public static void | |
| public boolean | |
| public IRubyObject | |
| private static void | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static void | |
| private static ThreadFiber. | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject |
| data | back to summary |
|---|---|
| pack-priv volatile ThreadFiber. | |
| FIBER_LAUNCHER | back to summary |
|---|---|
| private static final BiConsumer<Ruby, Runnable> FIBER_LAUNCHER | |
| INITIALIZE_KWARGS | back to summary |
|---|---|
| private static final String[] INITIALIZE_KWARGS | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NEVER | back to summary |
|---|---|
| private static final ThreadFiber. | |
| root | back to summary |
|---|---|
| pack-priv final boolean root | |
| storage | back to summary |
|---|---|
| pack-priv RubyHash storage | |
| thread | back to summary |
|---|---|
| pack-priv volatile RubyThread thread | |
| VTHREAD_START_METHOD | back to summary |
|---|---|
| private static final MethodHandle VTHREAD_START_METHOD | |
| ThreadFiber | back to summary |
|---|---|
| public ThreadFiber(Ruby runtime, RubyClass klass) | |
| ThreadFiber | back to summary |
|---|---|
| public ThreadFiber(Ruby runtime, RubyClass klass, boolean root) | |
| __finalize__ | back to summary |
|---|---|
public IRubyObject __finalize__(ThreadContext context)
| |
| adjustThreadBlocking | back to summary |
|---|---|
| private static void adjustThreadBlocking(ThreadContext context, ThreadFiber. | |
| alive | back to summary |
|---|---|
| pack-priv final boolean alive() | |
| alive_p | back to summary |
|---|---|
public IRubyObject alive_p(ThreadContext context)
| |
| backtrace | back to summary |
|---|---|
public IRubyObject backtrace(ThreadContext context)
| |
| backtrace | back to summary |
|---|---|
public IRubyObject backtrace(ThreadContext context, IRubyObject level)
| |
| backtrace | back to summary |
|---|---|
public IRubyObject backtrace(ThreadContext context, IRubyObject level, IRubyObject length)
| |
| backtrace_locations | back to summary |
|---|---|
public IRubyObject backtrace_locations(ThreadContext context)
| |
| backtrace_locations | back to summary |
|---|---|
public IRubyObject backtrace_locations(ThreadContext context, IRubyObject level)
| |
| backtrace_locations | back to summary |
|---|---|
public IRubyObject backtrace_locations(ThreadContext context, IRubyObject level, IRubyObject length)
| |
| blocking | back to summary |
|---|---|
public static IRubyObject blocking(ThreadContext context, IRubyObject self, Block block)
| |
| blocking_p | back to summary |
|---|---|
public IRubyObject blocking_p(ThreadContext context)
| |
| blocking_p_s | back to summary |
|---|---|
public static IRubyObject blocking_p_s(ThreadContext context, IRubyObject self)
| |
| checkSameFiber | back to summary |
|---|---|
| private void checkSameFiber(ThreadContext context) | |
| createThread | back to summary |
|---|---|
| pack-priv static RubyThread createThread(ThreadContext context, final ThreadFiber. | |
| current | back to summary |
|---|---|
public static IRubyObject current(ThreadContext context, IRubyObject recv)
| |
| doFinalize | back to summary |
|---|---|
| private void doFinalize() | |
| exchangeWithFiber | back to summary |
|---|---|
| private static ThreadFiber. | |
| fiberCalledAcrossThreads | back to summary |
|---|---|
| private static void fiberCalledAcrossThreads(Ruby runtime) | |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getContextVariables | back to summary |
|---|---|
| public Map Implements org.
| |
| getData | back to summary |
|---|---|
| public ThreadFiber. | |
| getThread | back to summary |
|---|---|
| public RubyThread getThread() | |
| handleExceptionDuringExchange | back to summary |
|---|---|
| private static void handleExceptionDuringExchange(ThreadContext context, ThreadFiber. Handle exceptions raised while exchanging data with a fiber. The rules work like this:
| |
| inheritFiberStorage | back to summary |
|---|---|
| public void inheritFiberStorage(ThreadContext context) | |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, Block block)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject _opts, Block block)
| |
| initRootFiber | back to summary |
|---|---|
| public static void initRootFiber(ThreadContext context, RubyThread currentThread) | |
| isBlocking | back to summary |
|---|---|
| public boolean isBlocking() | |
| kill | back to summary |
|---|---|
public IRubyObject kill(ThreadContext context)
| |
| nativeThreadLauncher | back to summary |
|---|---|
| private static void nativeThreadLauncher(Ruby runtime, Runnable runnable) | |
| op_aref | back to summary |
|---|---|
public static IRubyObject op_aref(ThreadContext context, IRubyObject recv, IRubyObject key)
| |
| op_aset | back to summary |
|---|---|
public static IRubyObject op_aset(ThreadContext context, IRubyObject recv, IRubyObject key, IRubyObject value)
| |
| processResultData | back to summary |
|---|---|
| private static IRubyObject processResultData(ThreadContext context, ThreadFiber. | |
| raise | back to summary |
|---|---|
public IRubyObject raise(ThreadContext context, IRubyObject[] args)
| |
| raise | back to summary |
|---|---|
| public IRubyObject raise(ThreadContext context, IRubyObject exception) | |
| resume | back to summary |
|---|---|
public IRubyObject resume(ThreadContext context, IRubyObject[] values)
| |
| setStorage | back to summary |
|---|---|
| private void setStorage(ThreadContext context, IRubyObject hash) | |
| storage | back to summary |
|---|---|
public IRubyObject storage(ThreadContext context)
| |
| storage_set | back to summary |
|---|---|
public IRubyObject storage_set(ThreadContext context, IRubyObject hash)
| |
| transfer | back to summary |
|---|---|
public IRubyObject transfer(ThreadContext context, IRubyObject[] values)
| |
| validateStorage | back to summary |
|---|---|
| private static void validateStorage(ThreadContext context, IRubyObject hashArg) | |
| verifyCurrentFiber | back to summary |
|---|---|
| private static ThreadFiber. | |
| yield | back to summary |
|---|---|
public static IRubyObject yield(ThreadContext context, IRubyObject recv)
| |
| yield | back to summary |
|---|---|
public static IRubyObject yield(ThreadContext context, IRubyObject recv, IRubyObject value)
| |
| yield | back to summary |
|---|---|
public static IRubyObject yield(ThreadContext context, IRubyObject recv, IRubyObject[] value)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final WeakReference | |
| pack-priv final RubyThread | |
| pack-priv volatile ThreadFiber | |
| pack-priv final FiberQueue | |
| pack-priv volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ThreadFiber |
| blocking | back to summary |
|---|---|
| pack-priv volatile boolean blocking | |
| fiber | back to summary |
|---|---|
| pack-priv final WeakReference<ThreadFiber> fiber | |
| parent | back to summary |
|---|---|
| pack-priv final RubyThread parent | |
| prev | back to summary |
|---|---|
| pack-priv volatile ThreadFiber prev | |
| queue | back to summary |
|---|---|
| pack-priv final FiberQueue queue | |
| transferred | back to summary |
|---|---|
| pack-priv volatile boolean transferred | |
| FiberData | back to summary |
|---|---|
| pack-priv FiberData(FiberQueue queue, RubyThread parent, ThreadFiber fiber, boolean blocking) | |
| getPrev | back to summary |
|---|---|
| public ThreadFiber getPrev() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object | |
| pack-priv final ThreadFiber. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| data | back to summary |
|---|---|
| pack-priv final Object data | |
| type | back to summary |
|---|---|
| pack-priv final ThreadFiber. | |
| FiberRequest | back to summary |
|---|---|
| pack-priv FiberRequest(Object data, ThreadFiber. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject |
| FiberSchedulerSupport | back to summary |
|---|---|
| public FiberSchedulerSupport() | |
| current_scheduler | back to summary |
|---|---|
public static IRubyObject current_scheduler(ThreadContext context, IRubyObject self)
| |
| get_scheduler | back to summary |
|---|---|
public static IRubyObject get_scheduler(ThreadContext context, IRubyObject self)
| |
| schedule | back to summary |
|---|---|
public static IRubyObject schedule(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
| |
| set_scheduler | back to summary |
|---|---|
public static IRubyObject set_scheduler(ThreadContext context, IRubyObject self, IRubyObject scheduler)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ThreadFiber. | |
| public static final ThreadFiber. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ThreadFiber. | |
| public static ThreadFiber. |
| DATA | back to summary |
|---|---|
| public static final ThreadFiber. | |
| RAISE | back to summary |
|---|---|
| public static final ThreadFiber. | |
| RequestType | back to summary |
|---|---|
| private RequestType() | |
| valueOf | back to summary |
|---|---|
| public static ThreadFiber. | |
| values | back to summary |
|---|---|
| public static ThreadFiber. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Ruby
the first input argument ruby, Runnable the second input argument runnable)Implements java. Performs this operation on the given arguments. |
| VirtualThreadLauncher | back to summary |
|---|---|
| private VirtualThreadLauncher() | |
| accept | back to summary |
|---|---|
| public void accept(Ruby ruby, Runnable runnable) Implements java. Doc from java. Performs this operation on the given arguments. | |