░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/share/ri/3.1.0/system/ThreadGroup
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: add-i.ri
U:RDoc::AnyMethod[iI"add:ETI"ThreadGroup#add;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GAdds the given +thread+ to this group, removing it from any other ;TI"9group to which it may have previously been a member.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":puts "Initial group is #{ThreadGroup::Default.list}" ;TI"tg = ThreadGroup.new ;TI"t1 = Thread.new { sleep } ;TI"t2 = Thread.new { sleep } ;TI"puts "t1 is #{t1}" ;TI"puts "t2 is #{t2}" ;TI"tg.add(t1) ;TI";puts "Initial group now #{ThreadGroup::Default.list}" ;TI"$puts "tg group now #{tg.list}" ;T:@format0o; ; [I"This will produce:;T@o;; [ I"+Initial group is #<Thread:0x401bdf4c> ;TI" t1 is #<Thread:0x401b3c90> ;TI" t2 is #<Thread:0x401b3c18> ;TI"@Initial group now #<Thread:0x401b3c18>#<Thread:0x401bdf4c> ;TI"&tg group now #<Thread:0x401b3c90>;T; 0: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I""thgrp.add(thread) -> thgrp ;T0[ I" (p1);T@%FI"ThreadGroup;TcRDoc::NormalClass00
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 add-i.ri
RI
1.1 KB
2025-10-01 20:48
EDIT
📄 cdesc-ThreadGroup.ri
RI
1 KB
2025-10-01 20:48
EDIT
📄 enclose-i.ri
RI
835 B
2025-10-01 20:48
EDIT
📄 enclosed%3f-i.ri
RI
388 B
2025-10-01 20:48
EDIT
📄 list-i.ri
RI
499 B
2025-10-01 20:48
EDIT