Top Description Fields Constructors Methods
org.jruby

public Class RubyThreadGroup

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:ThreadGroup
Imports
java.util.Collections, .Set, org.jruby.anno.JRubyMethod, .JRubyClass, org.jruby.runtime.Block, .ClassIndex, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.collections.WeakHashSet

Implementation of Ruby's ThreadGroup class. This is currently just a stub.
Author
Charles O Nutter ([email protected])

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
add(ThreadContext context, IRubyObject rubyThread, Block block)

public IRubyObject
add(IRubyObject rubyThread, Block block)
Deprecated

pack-priv void
addDirectly(RubyThread rubyThread)

public static RubyClass
public IRubyObject
enclose(Block block)

public IRubyObject
enclosed_p(ThreadContext context, Block block)

public IRubyObject
enclosed_p(Block block)
Deprecated

public IRubyObject
list(Block block)
Deprecated since 10.0.

public IRubyObject
list(ThreadContext context, Block block)

public void
remove(RubyThread rubyThread)

public int

Returns:

number of threads in this thread group
size
()

Number of threads in this thread group.

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

enclosedback to summary
private boolean enclosed
rubyThreadListback to summary
private final Set<RubyThread> rubyThreadList

Constructor Detail

RubyThreadGroupback to summary
private RubyThreadGroup(Ruby runtime, RubyClass type)

Method Detail

addback to summary
public IRubyObject add(ThreadContext context, IRubyObject rubyThread, Block block)
Annotations
@JRubyMethod
name:add
addback to summary
public IRubyObject add(IRubyObject rubyThread, Block block)

Deprecated

Annotations
@Deprecated
addDirectlyback to summary
pack-priv void addDirectly(RubyThread rubyThread)
createThreadGroupClassback to summary
public static RubyClass createThreadGroupClass(ThreadContext context, RubyClass Object)
encloseback to summary
public IRubyObject enclose(Block block)
Annotations
@JRubyMethod
enclosed_pback to summary
public IRubyObject enclosed_p(ThreadContext context, Block block)
Annotations
@JRubyMethod
name:enclosed?
enclosed_pback to summary
public IRubyObject enclosed_p(Block block)

Deprecated

Annotations
@Deprecated
listback to summary
public IRubyObject list(Block block)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
listback to summary
public IRubyObject list(ThreadContext context, Block block)
Annotations
@JRubyMethod
removeback to summary
public void remove(RubyThread rubyThread)
sizeback to summary
public int size()

Number of threads in this thread group. Note that threads that have recently died may still be counted here.

Returns:int

number of threads in this thread group