Re: Correct use of IOPMAssertionCreateWithName(...)
Re: Correct use of IOPMAssertionCreateWithName(...)
- Subject: Re: Correct use of IOPMAssertionCreateWithName(...)
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 9 Mar 2010 17:21:43 +0100
Le 9 mars 2010 à 17:13, James Bucanek a écrit : Jean-Daniel Dupas < mailto:email@hidden> wrote (Tuesday, March 9, 2010 3:50 AM +0100): a)
Brilliant, thanks. Final question: Am I correct in assuming the kernel will clean up and rescind an assertion created using IOPMAssertionCreateWithName() if my process exits abnormally (or crashes)?
And the answer is in another IOPMAssertionCreate() search result ;-)
Assertions should be released with IOPMAssertionRelease . However, even if not properly released, assertions will be automatically released when the process exits, dies, or crashes. A crashed process will not prevent idle sleep indefinitely. http://developer.apple.com/mac/library/qa/qa2004/qa1340.html
Listing 2
I'm scratching my head trying to think why I couldn't find that technical note during my searches, and I now realize I was searching for IOPMAssertionCreateWithName not IOPMAssertionCreate. I'll file a report to request that the documentation be updated now that IOPMAssertionCreate is deprecated. -- James Bucanek
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden