~vanvugt/mir/report-visible-lag

Viewing all changes in revision 1775.

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2014-07-18 09:56:38 UTC
  • mfrom: (1774.1.1 fix-1335481-benign-race)
  • Revision ID: tarmac-20140718095638-c83gvcy5kl3xxcoc
compositor: Fix benign race in the interaction between the BufferQueue and its framedrop policy causing assertions (LP: #1335481)

The framedrop handler may be in the process of being dispatched
when we try to cancel it by calling swap_unblocked() when we
get a buffer to give back to the client. In this case we cannot
cancel and the framedrop handler may be called without any pending client
notifications. This is a benign race that we can deal with by
just ignoring the framedrop request. Fixes: https://bugs.launchpad.net/bugs/1335481.

Approved by Daniel van Vugt, PS Jenkins bot, Alan Griffiths.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: