Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-76

Threading issues with ApplicationContext$ScheduledCallback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • wtk
    • None

    Description

      ApplicationContext$ScheduledCallback extends TimerTask and queues a runnable on the UI thread when the timer task is called to run. This presents a threading problem: the timer task may be called to run (on the Timer thread) while the underlying runnable is running on the UI thread. In this case, the underlying runnable may call cancel() on the timer task, but since the timer task is currently running, the underlying runnable will be re-queued on the UI thread, meaning that it will get called to run after the timer task has been cancelled.

      Attachments

        Activity

          People

            tvolkert Todd Volkert
            tvolkert Todd Volkert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: