Skip to main content
4 events
when toggle format what by license comment
Dec 16, 2021 at 15:14 comment added jdt Generally one wants to send a signal to <b>all</b> the threads that they should stop before joining them.
Dec 15, 2021 at 15:46 history edited G. Sliepen CC BY-SA 4.0
added 1438 characters in body
Dec 15, 2021 at 13:16 comment added Edward There actually is still an unresolved data race for the Consumer threads -- both use std::cout without a semaphore or lock. With C++20, they could use std::osyncstream to address that flaw.
Dec 12, 2021 at 23:14 history answered G. Sliepen CC BY-SA 4.0