Skip to content
Snippets Groups Projects

Update the locking code to use RAII.

  • move from directly calling try_lock/unlock on the mutex to using a unique_lock to ensure unlock is always called in the presence of exceptions.
  • created a simple wrapper function to simplify getting the lock acquired right all the time.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading