Package org.jruby
Class FiberScheduler
java.lang.Object
org.jruby.FiberScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectaddressResolve(ThreadContext context, IRubyObject scheduler, IRubyObject hostname) static IRubyObjectblock(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject timeout) static IRubyObjectclose(ThreadContext context, IRubyObject scheduler) static IRubyObjectioClose(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObjectioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) static IRubyObjectioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) static IRubyObjectioPReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) static IRubyObjectioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) static IRubyObjectioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) static IRubyObjectioPWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) static IRubyObjectioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) static IRubyObjectioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) static IRubyObjectioReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) static IRubyObjectioSelect(ThreadContext context, IRubyObject scheduler, IRubyObject readables, IRubyObject writables, IRubyObject exceptables, IRubyObject timeout) static IRubyObjectioSelectv(ThreadContext context, IRubyObject scheduler, IRubyObject... args) static IRubyObjectioWait(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject events, IRubyObject timeout) static IRubyObjectioWaitReadable(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObjectioWaitWritable(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObjectioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) static IRubyObjectioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) static IRubyObjectioWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) static IRubyObjectkernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject timeout) static IRubyObjectkernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject[] args) static IRubyObjectprocessWait(ThreadContext context, IRubyObject scheduler, long pid, int flags) static IRubyObjectDeprecated.static IRubyObjectresult(ThreadContext context, int result, jnr.constants.platform.Errno error) static intresultApply(ThreadContext context, IRubyObject result) static IRubyObjectunblock(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject fiber)
-
Constructor Details
-
FiberScheduler
public FiberScheduler()
-
-
Method Details
-
kernelSleep
public static IRubyObject kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject timeout) -
kernelSleep
public static IRubyObject kernelSleep(ThreadContext context, IRubyObject scheduler, IRubyObject[] args) -
processWait
public static IRubyObject processWait(ThreadContext context, IRubyObject scheduler, long pid, int flags) -
block
public static IRubyObject block(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject timeout) -
unblock
public static IRubyObject unblock(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject fiber) -
ioWait
public static IRubyObject ioWait(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject events, IRubyObject timeout) -
ioWaitReadable
public static IRubyObject ioWaitReadable(ThreadContext context, IRubyObject scheduler, IRubyObject io) -
ioWaitWritable
public static IRubyObject ioWaitWritable(ThreadContext context, IRubyObject scheduler, IRubyObject io) -
ioSelect
public static IRubyObject ioSelect(ThreadContext context, IRubyObject scheduler, IRubyObject readables, IRubyObject writables, IRubyObject exceptables, IRubyObject timeout) -
ioSelectv
public static IRubyObject ioSelectv(ThreadContext context, IRubyObject scheduler, IRubyObject... args) -
ioRead
public static IRubyObject ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) -
ioRead
public static IRubyObject ioRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) -
ioPRead
public static IRubyObject ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) -
ioPRead
public static IRubyObject ioPRead(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) -
ioWrite
public static IRubyObject ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) -
ioWrite
public static IRubyObject ioWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) -
ioPWrite
public static IRubyObject ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) -
ioPWrite
public static IRubyObject ioPWrite(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) -
ioReadMemory
public static IRubyObject ioReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) -
ioPReadMemory
public static IRubyObject ioPReadMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) -
ioWriteMemory
public static IRubyObject ioWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) -
ioPWriteMemory
public static IRubyObject ioPWriteMemory(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) -
ioClose
-
addressResolve
public static IRubyObject addressResolve(ThreadContext context, IRubyObject scheduler, IRubyObject hostname) -
close
-
resultApply
-
result
@Deprecated(since="10.0") public static IRubyObject result(Ruby runtime, int result, jnr.constants.platform.Errno error) Deprecated. -
result
public static IRubyObject result(ThreadContext context, int result, jnr.constants.platform.Errno error)
-