Package org.jruby
Class FiberScheduler
java.lang.Object
org.jruby.FiberScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObject
addressResolve
(ThreadContext context, IRubyObject scheduler, IRubyObject hostname) static IRubyObject
block
(ThreadContext context, IRubyObject scheduler, IRubyObject blocker, IRubyObject timeout) static IRubyObject
close
(ThreadContext context, IRubyObject scheduler) static IRubyObject
ioClose
(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObject
ioPRead
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) static IRubyObject
ioPRead
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) static IRubyObject
ioPReadMemory
(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) static IRubyObject
ioPWrite
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int from, int length, int offset) static IRubyObject
ioPWrite
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger from, RubyInteger length, RubyInteger offset) static IRubyObject
ioPWriteMemory
(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int from, int size, int length) static IRubyObject
ioRead
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) static IRubyObject
ioRead
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) static IRubyObject
ioReadMemory
(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) static IRubyObject
ioSelect
(ThreadContext context, IRubyObject scheduler, IRubyObject readables, IRubyObject writables, IRubyObject exceptables, IRubyObject timeout) static IRubyObject
ioSelectv
(ThreadContext context, IRubyObject scheduler, IRubyObject... args) static IRubyObject
ioWait
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject events, IRubyObject timeout) static IRubyObject
ioWaitReadable
(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObject
ioWaitWritable
(ThreadContext context, IRubyObject scheduler, IRubyObject io) static IRubyObject
ioWrite
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, int length, int offset) static IRubyObject
ioWrite
(ThreadContext context, IRubyObject scheduler, IRubyObject io, IRubyObject buffer, RubyInteger length, RubyInteger offset) static IRubyObject
ioWriteMemory
(ThreadContext context, IRubyObject scheduler, IRubyObject io, ByteBuffer base, int size, int length) static IRubyObject
kernelSleep
(ThreadContext context, IRubyObject scheduler, IRubyObject timeout) static IRubyObject
kernelSleep
(ThreadContext context, IRubyObject scheduler, IRubyObject[] args) static IRubyObject
processWait
(ThreadContext context, IRubyObject scheduler, long pid, int flags) static IRubyObject
Deprecated.static IRubyObject
result
(ThreadContext context, int result, jnr.constants.platform.Errno error) static int
resultApply
(ThreadContext context, IRubyObject result) static IRubyObject
unblock
(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)
-