~albaguirre/mir/fix-1427976

Viewing all changes in revision 2361.

  • Committer: Alberto Aguirre
  • Date: 2015-03-04 19:58:20 UTC
  • Revision ID: alberto.aguirre@canonical.com-20150304195820-2qew1aa8z6hgagx2
Avoid unlocking sesssion mutex in a different thread.

In some cases, SessionMediator needs to lock the session
while it waits for Surface::swap_buffers which may complete asynchronously on a different thread. 
Since a std::mutex cannot be used for such purposes a SemaphoreLock type is introduced.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: