Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. do {
  2.     std::lock_guard<std::mutex> input_lock(input_mutex);
  3.     /* Do something that needs protecting by the mutex here */
  4. } while(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement