Serializing access to Streams -- Marco Foco
A new blog post containing runnable code from the Italian C++ Community:
Serializing access to Streams
by Marco Foco
From the article:
Two or more threads were writing to cout using the form:
cout << someData << "some string" << someObject << endl;And one of the problems was that data sent from one thread often interrupted another thread, so the output was always messed up. [...] I started designing a solution by giving myself some guidelines, here listed in order of importance...

While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature:
While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature: