Guest User

Untitled

a guest
Feb 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void f(void);
  2. int g(int);
  3.  
  4. mutex mtx;
  5.  
  6. void _f(void) {
  7. mtx.lock();
  8. f();
  9. mtx.unlock();
  10. }
  11.  
  12. int _g(int i) {
  13. mtx.lock();
  14. int result = g(i);
  15. mtx.unlock();
  16. return result;
  17. }
Add Comment
Please, Sign In to add comment