pthreads :: Thread :: cancel
# Cancel the execution of the thread fun cancel do if native == null then return native.cancel native = null end