/usr/share/freemat/help/text/threadkill.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | THREADKILL THREADKILL Halt execution of a thread
Usage
The threadkill function stops (or attempts to stop) execution
of the given thread. It works only for functions defined in M-files
(i.e., not for built in or imported functions), and it works by
setting a flag that causes the thread to stop execution at the next
available statement. The syntax for this function is
threadkill(handle)
where handle is the value returned by a threadnew call.
Note that the threadkill function returns immediately. It
is still your responsibility to call threadfree to free
the thread you have halted.
You cannot kill the main thread (thread id 1).
|