Package org.jruby.ext.fiber
Class FiberQueue
java.lang.Object
org.jruby.ext.fiber.FiberQueue
A RubyThread-aware BlockingQueue wrapper used by Fiber for transferring values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockingQueue<IRubyObject>protected final Ruby(package private) final RubyThread.Task<FiberQueue,IRubyObject> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanpop(ThreadContext context) voidpush(ThreadContext context, IRubyObject arg) voidshutdown()shutdown(ThreadContext context)
-
Field Details
-
queue
-
runtime
-
takeTask
-
-
Constructor Details
-
FiberQueue
-
-
Method Details
-
shutdown
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
getQueueSafe
-
checkShutdown
public void checkShutdown() -
pop
-
push
-