Re: IOCommandGate commandSleep/commandWakeup
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Dec 13, 2007, at 11:23 AM, Eric Long wrote: You probably want THREAD_UNINT. = 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... kr = driver->myCommandGate->commandSleep(&(driver-
isSleeping), THREAD_ABORTSAFE);
THREAD_ABORTSAFE means that it is safe to abort this thread while it is asleep, in which case it will never return. If you are certain that you can tear down your operation while it is in progress, you might consider THREAD_INTERRUPTIBLE, but you will have to handle the THREAD_INTERRUPTED return case as well, and the fact that you may be racing with whatever is responsible for waking you up "normally". This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith