site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 11, 2008, at 12:08 PM, Duane Murphy wrote: What is the equivalent of pthread_join() for a kernel thread? = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I am using IOThreadCreate() to create a new thread. At some later point I indicate to that thread to stop. How do I detect that the thread as exited? You don't. The kernel doesn't exit, so typically your thread signals a condition to acknowledge the request and then terminates. If you know the thread's safely asleep without state, and you have arranged accordingly beforehand, you can just terminate it out of hand. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith