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

Threading issues with ApplicationContext$ScheduledCallback

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: wtk
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: