site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Organization: Ardis Technologies BV User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com