Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class producer {
- public:
- producer(mutex m, condition_variable cv)
- {
- mut = m; // ERROR
- cvar = cv; // ERROR
- }
- private:
- mutex mut;
- condition_variable cvar;
- }
- int main ()
- {
- mutex m;
- condition_variable cv;
- //Initialize mutex & cv
- producer prod(m, cv);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement