wakeup()
public
Marks thr as eligible for scheduling (it may still remain blocked
on I/O, however). Does not invoke the scheduler (see Thread#run).
c = Thread.new { Thread.stop; puts "hey!" }
sleep 0.1 while c.status!='sleep'
c.wakeup
c.join
produces:
hey!
Show source
VALUE
rb_thread_wakeup(VALUE thread)
{
if (!RTEST(rb_thread_wakeup_alive(thread))) {
rb_raise(rb_eThreadError, "killed thread");
}
return thread;
}