« Previous | Next » 

Revision 5998374f

ID5998374f7e179cfaf451c220216adc18c823047f
Parent 6fd9bc1e
Child a9ec58f0

Added by Jani Simomaa about 1 month ago

Replace OrientationRestorer TimerTask usage with ScheduledExecutor

Timer can exhaust the system with TimerTask-runnables that are queued up
e.g. during computer hibernate and sleep. According to documentation:

If an execution is delayed for any reason (such as garbage collection or
other background activity), two or more executions will occur in rapid
succession to "catch up." In the long run, the frequency of execution
will be exactly the reciprocal of the specified period

With heavy tasks this is very bad

refs #7682

Change-Id: I5a097c8bc5e1ea2a5abe30905b2a46fa8b8386f8

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences