Project

General

Profile

Feature #15909 ยป thread_kill_docs.patch

womble (Matt Palmer), 06/09/2019 12:05 AM

View differences:

thread.c
/*
* call-seq:
* thr.exit -> thr or nil
* thr.kill -> thr or nil
* thr.terminate -> thr or nil
* thr.exit -> thr
* thr.kill -> thr
* thr.terminate -> thr
*
* Terminates +thr+ and schedules another thread to be run.
*
* If this thread is already marked to be killed, #exit returns the Thread.
* Schedules +thr+ to be terminated.
*
* If this is the main thread, or the last thread, exits the process.
*
* Any ensure blocks in the terminated thread's call stack will be executed
* before the thread terminates.
*
* In order to be safe against asynchronous termination via #exit,
* Thread.handle_interrupt should be called with Fixnum as the
* ExceptionClass.
*/
VALUE
    (1-1/1)