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
<ThreadFiber.FiberRequest> protected final Ruby
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
pop
(ThreadContext context) void
push
(ThreadContext context, ThreadFiber.FiberRequest arg) void
shutdown()
shutdown
(ThreadContext context)
-
Field Details
-
queue
-
runtime
-
-
Constructor Details
-
FiberQueue
-
-
Method Details
-
shutdown
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
getQueueSafe
-
checkShutdown
public void checkShutdown() -
pop
-
push
-