Atmosphere/atmosphere — pull request #119 by azell (2011-12-09 21:47:39+00:00)
Title: Fix for issue #54: Lifecycle policy scheduler needs to be modified based on activity

Maintain an atomic boolean that is set to true on every publish. Check in the life cycle handler to see if the atomic boolean has remained false through at least one full interval. If so, proceed with checking the various IDLE_* conditions.

This is a minimal-effort approach, in that we do not alter the handler's scheduling to detect a precise idle interval.