Top Description Fields Constructors Methods
org.jruby.ext.thread

public Class ConditionVariable

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:ConditionVariable
Imports
org.jruby.Ruby, .RubyClass, .RubyMarshal, .RubyObject, .RubyThread, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Arity, .Block, .JavaSites, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, java.util.concurrent.ConcurrentLinkedQueue

The "ConditionVariable" class from the 'thread' library.

Field Summary

Modifier and TypeField and Description
private final ConcurrentLinkedQueue<RubyThread>
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized IRubyObject
public IRubyObject
public static ConditionVariable
newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)

public static RubyClass
setup(ThreadContext context, RubyClass Thread, RubyClass Object)

public synchronized IRubyObject
private static JavaSites.ConditionVariableSites
sites(ThreadContext context)

Hides org.jruby.RubyObject.sites.

Retrieve the call sites for this class.

public IRubyObject
public IRubyObject
public IRubyObject
wait_ruby(ThreadContext context, IRubyObject[] args)
Deprecated

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

waitersback to summary
private final ConcurrentLinkedQueue<RubyThread> waiters

Constructor Detail

ConditionVariableback to summary
public ConditionVariable(Ruby runtime, RubyClass type)

Method Detail

broadcastback to summary
public synchronized IRubyObject broadcast(ThreadContext context)
Annotations
@JRubyMethod
marshal_dumpback to summary
public IRubyObject marshal_dump(ThreadContext context)
Annotations
@JRubyMethod
newInstanceback to summary
public static ConditionVariable newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
name:new
rest:true
meta:true
setupback to summary
public static RubyClass setup(ThreadContext context, RubyClass Thread, RubyClass Object)
signalback to summary
public synchronized IRubyObject signal(ThreadContext context)
Annotations
@JRubyMethod
sitesback to summary
private static JavaSites.ConditionVariableSites sites(ThreadContext context)

Hides org.jruby.RubyObject.sites.

Doc from org.jruby.RubyBasicObject.sites.

Retrieve the call sites for this class. It is expected that all Java-based core classes that do call site caching will have a similar method.

wait_rubyback to summary
public IRubyObject wait_ruby(ThreadContext context, IRubyObject m)
Annotations
@JRubyMethod
name:wait
wait_rubyback to summary
public IRubyObject wait_ruby(ThreadContext context, IRubyObject m, IRubyObject t)
Annotations
@JRubyMethod
name:wait
wait_rubyback to summary
public IRubyObject wait_ruby(ThreadContext context, IRubyObject[] args)

Deprecated

Annotations
@Deprecated