clue icon indicating copy to clipboard operation
clue copied to clipboard

Option for thread safe logging

Open yalov opened this issue 2 years ago • 3 comments

I like this logging framework, it is header-only and tiny, could you make it also thread safe? (Optionally)

yalov avatar Jun 04 '23 14:06 yalov

Thanks for your interest.

Do you have suggestions to make it easier to start on it?

martinmoene avatar Jun 04 '23 14:06 martinmoene

The most simple way to enable feature for users that I know would be #define thread_safe 1 in the start of the clue.hpp, and by default the feature would be disabled.

No other suggestions from me, sorry.

yalov avatar Jun 04 '23 14:06 yalov

Okay, thanks nonetheless.

martinmoene avatar Jun 04 '23 14:06 martinmoene