rkflx added a comment.

  Do you suggest I should write my own bool-based RAII wrapper, which would be 
racy, less efficient, buggy, more verbose and harder to read? Using a mutex 
solves the maintainability risk outlined in 
https://phabricator.kde.org/D7495#141032 with no costs. Also, when researching 
this, I got the impression that a mutex is more customary when locking is 
involved (which is what we are doing here).

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D7595

To: rkflx, #okular
Cc: aacid

Reply via email to