Top Constructors Methods
org.jruby

public Class FiberScheduler

extends Object
Class Inheritance
Imports
jnr.constants.platform.Errno, org.jruby.runtime.Helpers, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.io.OpenFile, java.nio.ByteBuffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
addressResolve(ThreadContext context, IRubyObject scheduler, IRubyObject hostname)

public static IRubyObject
block(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject timeout)

public static IRubyObject
close(ThreadContext context, IRubyObject scheduler)

public static IRubyObject
ioClose(ThreadContext context, IRubyObject scheduler, IRubyObject io)

public static IRubyObject
ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset)

public static IRubyObject
ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset)

public static IRubyObject
ioPReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length)

public static IRubyObject
ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset)

public static IRubyObject
ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset)

public static IRubyObject
ioPWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length)

public static IRubyObject
ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset)

public static IRubyObject
ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset)

public static IRubyObject
ioReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length)

public static IRubyObject
ioSelect(ThreadContext context, IRubyObject scheduler, IRubyObject readables, IRubyObject writables, IRubyObject exceptables, IRubyObject timeout)

public static IRubyObject
ioSelectv(ThreadContext context, IRubyObject scheduler, IRubyObject... args)

public static IRubyObject
ioWait(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject events, IRubyObject timeout)

public static IRubyObject
public static IRubyObject
public static IRubyObject
ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset)

public static IRubyObject
ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset)

public static IRubyObject
ioWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length)

public static IRubyObject
kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject timeout)

public static IRubyObject
kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject[] args)

public static IRubyObject
processWait(ThreadContext context, IRubyObject scheduler, long pid, int flags)

public static IRubyObject
result(Ruby runtime, int result, Errno error)
Deprecated since 10.0.

public static IRubyObject
result(ThreadContext context, int result, Errno error)

public static int
public static IRubyObject
unblock(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject fiber)

pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FiberSchedulerback to summary
public FiberScheduler()

Method Detail

addressResolveback to summary
public static IRubyObject addressResolve(ThreadContext context, IRubyObject scheduler, IRubyObject hostname)
blockback to summary
public static IRubyObject block(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject timeout)
closeback to summary
public static IRubyObject close(ThreadContext context, IRubyObject scheduler)
ioCloseback to summary
public static IRubyObject ioClose(ThreadContext context, IRubyObject scheduler, IRubyObject io)
ioPReadback to summary
public static IRubyObject ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset)
ioPReadback to summary
public static IRubyObject ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset)
ioPReadMemoryback to summary
public static IRubyObject ioPReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length)
ioPWriteback to summary
public static IRubyObject ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset)
ioPWriteback to summary
public static IRubyObject ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset)
ioPWriteMemoryback to summary
public static IRubyObject ioPWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length)
ioReadback to summary
public static IRubyObject ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset)
ioReadback to summary
public static IRubyObject ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset)
ioReadMemoryback to summary
public static IRubyObject ioReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length)
ioSelectback to summary
public static IRubyObject ioSelect(ThreadContext context, IRubyObject scheduler, IRubyObject readables, IRubyObject writables, IRubyObject exceptables, IRubyObject timeout)
ioSelectvback to summary
public static IRubyObject ioSelectv(ThreadContext context, IRubyObject scheduler, IRubyObject... args)
ioWaitback to summary
public static IRubyObject ioWait(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject events, IRubyObject timeout)
ioWaitReadableback to summary
public static IRubyObject ioWaitReadable(ThreadContext context, IRubyObject scheduler, IRubyObject io)
ioWaitWritableback to summary
public static IRubyObject ioWaitWritable(ThreadContext context, IRubyObject scheduler, IRubyObject io)
ioWriteback to summary
public static IRubyObject ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset)
ioWriteback to summary
public static IRubyObject ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset)
ioWriteMemoryback to summary
public static IRubyObject ioWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length)
kernelSleepback to summary
public static IRubyObject kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject timeout)
kernelSleepback to summary
public static IRubyObject kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject[] args)
processWaitback to summary
public static IRubyObject processWait(ThreadContext context, IRubyObject scheduler, long pid, int flags)
resultback to summary
public static IRubyObject result(Ruby runtime, int result, Errno error)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
resultback to summary
public static IRubyObject result(ThreadContext context, int result, Errno error)
resultApplyback to summary
public static int resultApply(ThreadContext context, IRubyObject result)
unblockback to summary
public static IRubyObject unblock(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject fiber)
verifyInterfaceback to summary
pack-priv static void verifyInterface(ThreadContext context, IRubyObject scheduler)