Re: kernel thread join?
Re: kernel thread join?
- Subject: Re: kernel thread join?
- From: Michael Smith <email@hidden>
- Date: Fri, 11 Apr 2008 22:57:02 -0700
On Apr 11, 2008, at 12:08 PM, Duane Murphy wrote:
What is the equivalent of pthread_join() for a kernel thread?
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.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden