Closed murasesyuka closed 9 years ago
there is one question.
what mean under the code?
pthread_kill(context->thread, 0);
if checking thread_id valid or thread exist, I think it need return value. for example
if (pthread_kill(context->thread, 0) == ESRCH){ /* Not a valid thread */ }
do you mean pthread_kill in mrb_thread_kill ?
Both in mrb_thread_kill () and in mrb_thread_context_free ().
This is complementary call for terminating thread.
thank you for fix
there is one question.
what mean under the code?
if checking thread_id valid or thread exist, I think it need return value. for example