Re: Invalid parameter passed to C runtime function
Originally Posted by wysota
I think you overcomplicated the code. And shouldn't the producer be a thread living all the time just waiting for the consumers to tell it to start producing? Right now you start a thread only to set a variable and then the thread dies. With the architecture you have there is completely no benefit from having threads so I doubt this is what your professor had in mind.
Perhaps and overcomplicated, but task must be solved. I chose C++11 methods by reason of transparency, have any ideas to solve it?
Bookmarks