Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: kernel thread join?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel thread join?




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


References: 
 >kernel thread join? (From: "Duane Murphy" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.