Re: How can I get notified that a kernel thread has been terminated ?
Re: How can I get notified that a kernel thread has been terminated ?
- Subject: Re: How can I get notified that a kernel thread has been terminated ?
- From: Roman Zippel <email@hidden>
- Date: Fri, 05 Aug 2011 18:11:00 +0200
- Organization: Ardis Technologies BV
On 05.08.2011 09:34, Nicolas Connoud wrote:
> I have tried that. The kext-unload waits for a flag to be set (this is the
> last thing my thread function does) before carrying on with the unload.
> Still it is not enough.
There may also be race conditions at how you set the flag.
The easiest answer is probably to use an IOLock. This way you can force
the unload function to sleep until it's woken up by the thread. If the
last call in the thread is an IOLockUnlock() call, you should be fine.
bye, Roman
_______________________________________________
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