PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Thread
U:RDoc::AnyMethod[iI" join:ETI"Thread#join;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BThe calling thread will suspend execution and run this +thr+.;To:RDoc::Markup::BlankLine o; ; [I"ODoes not return until +thr+ exits or until the given +limit+ seconds have ;TI"passed.;T@o; ; [I"KIf the time limit expires, +nil+ will be returned, otherwise +thr+ is ;TI"returned.;T@o; ; [I"GAny threads not joined will be killed when the main program exits.;T@o; ; [I"QIf +thr+ had previously raised an exception and the ::abort_on_exception or ;TI"Q$DEBUG flags are not set, (so the exception has not yet been processed), it ;TI"$will be processed at this time.;T@o:RDoc::Markup::Verbatim; [ I"Ca = Thread.new { print "a"; sleep(10); print "b"; print "c" } ;TI"Ex = Thread.new { print "x"; Thread.pass; print "y"; print "z" } ;TI"Dx.join # Let thread x finish, thread a will be killed on exit. ;TI"#=> "axyz" ;T:@format0o; ; [I"=The following example illustrates the +limit+ parameter.;T@o;; [I">y = Thread.new { 4.times { sleep 0.1; puts 'tick... ' }} ;TI"'puts "Waiting" until y.join(0.15) ;T; 0o; ; [I"This will produce:;T@o;; [I" tick... ;TI" Waiting ;TI" tick... ;TI" Waiting ;TI" tick... ;TI"tick...;T; 0: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I"7thr.join -> thr thr.join(limit) -> thr ;T0[ I"(*args);T@7FI"Thread;TcRDoc::NormalClass00
[-] ignore_deadlock-c.ri
[edit]
[-] run-i.ri
[edit]
[-] start-c.ri
[edit]
[-] to_s-i.ri
[edit]
[+]
Backtrace
[-] key%3f-i.ri
[edit]
[-] thread_variable_set-i.ri
[edit]
[+]
SizedQueue
[-] stop%3f-i.ri
[edit]
[-] abort_on_exception-i.ri
[edit]
[-] report_on_exception%3d-c.ri
[edit]
[-] ignore_deadlock%3d-c.ri
[edit]
[-] %5b%5d%3d-i.ri
[edit]
[-] report_on_exception%3d-i.ri
[edit]
[-] thread_variable%3f-i.ri
[edit]
[-] backtrace_locations-i.ri
[edit]
[-] alive%3f-i.ri
[edit]
[-] list-c.ri
[edit]
[-] wakeup-i.ri
[edit]
[-] thread_variables-i.ri
[edit]
[-] abort_on_exception-c.ri
[edit]
[-] new-c.ri
[edit]
[-] set_trace_func-i.ri
[edit]
[-] fork-c.ri
[edit]
[-] fetch-i.ri
[edit]
[-] join-i.ri
[edit]
[-] pass-c.ri
[edit]
[-] add_trace_func-i.ri
[edit]
[-] backtrace-i.ri
[edit]
[-] name-i.ri
[edit]
[-] kill-c.ri
[edit]
[-] current-c.ri
[edit]
[-] priority%3d-i.ri
[edit]
[-] name%3d-i.ri
[edit]
[-] group-i.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[-] keys-i.ri
[edit]
[-] kill-i.ri
[edit]
[+]
..
[-] report_on_exception-c.ri
[edit]
[-] pending_interrupt%3f-i.ri
[edit]
[-] handle_interrupt-c.ri
[edit]
[+]
Mutex
[-] priority-i.ri
[edit]
[-] main-c.ri
[edit]
[-] pending_interrupt%3f-c.ri
[edit]
[+]
Queue
[-] native_thread_id-i.ri
[edit]
[-] raise-i.ri
[edit]
[-] terminate-i.ri
[edit]
[-] thread_variable_get-i.ri
[edit]
[-] each_caller_location-c.ri
[edit]
[-] exit-i.ri
[edit]
[-] inspect-i.ri
[edit]
[-] report_on_exception-i.ri
[edit]
[-] cdesc-Thread.ri
[edit]
[-] value-i.ri
[edit]
[-] stop-c.ri
[edit]
[-] abort_on_exception%3d-c.ri
[edit]
[-] exit-c.ri
[edit]
[+]
ConditionVariable
[-] abort_on_exception%3d-i.ri
[edit]
[-] status-i.ri
[edit]