tgfrerer/ofxPlaylist — comment on commit 90612164074b84f7022760b72b2d7e4cc0b81f51
File:  line 0
By tgfrerer:

Hi Christoph,

you're right, getting ofLog to be thread-safe would be the most elegant solution.

I've had a poke around a while ago, and I remember that this promised to be quite tricky. I suspect we would need different implementations for each operating system.

On OS X, cout and fprintf() are both not thread-safe (fprintf() seems to be slightly better than cout ). I ended up using ASL (Apple System Log, which is the OS X log framework) for a project that needed thread-safe logging on OS X.

Have you had encounters with ofLog() thread-safety issues on Linux?
Cheers

#

Tim

On 2 Feb 2012, at 11:48, Christoph Buchner wrote:

> Hi tim! Forgive my undoubtedly lacking knowledge, but wouldn't it be possible to make ofLog thread-safe, instead of this workaround?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/tgfrerer/ofxPlaylist/commit/90612164074b84f7022760b72b2d7e4cc0b81f51#commitcomment-926084