Ticket #245 (closed enhancement: invalid)
Allow a resource to Veto against a Suspend
| Reported by: | mickey | Owned by: | jluebbe |
|---|---|---|---|
| Priority: | major | Milestone: | milestone5 |
| Component: | framework/ousaged | Version: | |
| Keywords: | org.freesmartphone.Usage.Suspend | Cc: |
Description
Resources need to be able to veto against a Suspend call. Implementors should be very careful with this though as we don't want to overuse it. One usecase is for the GSM resource: We _never_ want to suspend while having a call active.
Change History
comment:2 Changed 3 years ago by mickey
I'm not sure I still want that. Please don't work on that until we are more clear.
comment:3 Changed 3 years ago by mickey
- Status changed from accepted to closed
- Resolution set to invalid
I made up my mind on that. Resources will never allowed to veto against a suspend, they rather should try to realize the suspend request as good as possible.
The root usecase for this enhancement was that we don't want to suspend GSM during a call. With the addition of the CPU resource, we now don't request to suspend in the first place -- which is the correct behaviour. If the user actually wants to suspend, then we will honor his or her wish and will always suspend, no matter whether he is on a call or not.
