Skip to contentSkip to conversation

Freezer: How to handle timers?

DISCUSSION Elias Oltmanns 2 participants 3 messages Jul 20, 2008 – Aug 8, 2008

lore
Share & tools
lore
#0 lore raw

Hi there,

am I right in thinking that timers set by mod_timer() will not fire once suspend_freeze_processes() has completed? If so, what options do I have to make sure that either suspending will be delayed until my timer has expired, or the timeout callback will be called as part of the suspend sequence even if the timer has not expired yet?

Thanks in advance,

Elias

#1 lore raw
Quoted 7 lines · Elias Oltmanns

Hi there,

am I right in thinking that timers set by mod_timer() will not fire once suspend_freeze_processes() has completed? If so, what options do I have to make sure that either suspending will be delayed until my timer has expired, or the timeout callback will be called as part of the suspend sequence even if the timer has not expired yet?

Alright, I think I can solve my particular problem quite well by means of a pm notifier. However, I'm still wondering whether timers really should be affected by suspend_freeze_processes().

Regards,

Elias

#2 lore raw
Quoted 9 lines · Elias Oltmanns
Quoted 7 lines · Elias Oltmanns

Hi there,

am I right in thinking that timers set by mod_timer() will not fire once suspend_freeze_processes() has completed? If so, what options do I have to make sure that either suspending will be delayed until my timer has expired, or the timeout callback will be called as part of the suspend sequence even if the timer has not expired yet?

Quoted 3 lines

Alright, I think I can solve my particular problem quite well by means of a pm notifier. However, I'm still wondering whether timers really should be affected by suspend_freeze_processes().

I don't think they are... are they?

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html