I am slightly confused in mutex, lock, and wait.
Here is my code:
void producer(std::mutex* m, std::condition_variable* cv,bool* signal) { std::th