When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
11 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
What are you stuck with?
The code looks extremely error-prone. Manually locking and unlocking mutexes is way too difficult to maintain.
The program won't go through when I try to run it
You probably have a deadlock.
Use std::lock_guard or even better make a wrapper that does it automatically.
It's what we were told to do
That is unfortunate.
I was using unique lock before for this code but we were asked to use semaphores now