Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class producer {
  2.  
  3. public:
  4. producer(mutex m, condition_variable cv)
  5. {
  6. mut = m; // ERROR
  7. cvar = cv; // ERROR
  8. }
  9.  
  10. private:
  11. mutex mut;
  12. condition_variable cvar;
  13. }
  14.  
  15. int main ()
  16. {
  17. mutex m;
  18. condition_variable cv;
  19. //Initialize mutex & cv
  20. producer prod(m, cv);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement