| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Thursday, August 15, 2002, at 07:19 AM, Wayne Flansburg wrote:_______________________________________________
On Wednesday, August 14, 2002, at 01:59 PM, email@hidden wrote:
Is there a limit to the amount of time you can spend in your notification callback on shutdown?
The max time for the entire shutdown is presently 30 seconds.
My callback is entered, and I start to clean my drive's cache, but before I can finish (after about 25 seconds), the system powers off. Is there a way I can prevent the system from powering off until after I've finished up?
Presently you have no way of saying "Hey wait until I'm done". You are pushing the 30 second limit. Although I believe you can abort the shutdown (I'll have to code this to make sure) there are certain cases that are unconditional. Low PB battery comes to mind.
A simple fix might be to add an API that allows a shutdown task to determine how long it will be before the power goes off. Each task can then determine whether or not it has enough time for a complete shutdown, or whether it has to run screaming from the building.
In my case, I have a cache that needs to be written to the drive, and which can take anywhere from less than a minute to several minutes to be completely cleaned. The cache is stored on the user's hard drive, and could remain dirty across a reboot, as long as the cached media remains in the drive when the computer is restarted (so that the cache cleaning operation could be restarted). Preparing the cache and drive for a restart would take no more than several seconds.
Thanks,
Ron Aldrich
Software Architects, Inc.
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: Shutting down cleanly (From: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.