Wrapping cout and cerr in thread-happy atomics