~albaguirre/mir/add-hwc14-support-0.12

Viewing all changes in revision 2301.

  • Committer: Alexandros Frantzis
  • Author(s): Alberto Aguirre
  • Date: 2015-03-19 11:09:45 UTC
  • mfrom: (2296.1.5 0.12)
  • Revision ID: alexandros.frantzis@canonical.com-20150319110945-iyk2scbil2ko11gv
Avoid unlocking a mutex in a thread that does not own it (LP: #1427976).
    
SessionMediator unlocks its session_mutex before invoking rpc callbacks. This
becomes cumbersome when SessionMediator needs to call Surface::swap_buffers, as
the completion function may be executed in an entirely different thread.
  
The session_mutex should only be unlocked if the completion function is invoked
during Surface::swap_buffers.
  
Backported from lp:mir r2379.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: