clog icon indicating copy to clipboard operation
clog copied to clipboard

Is it thread-safe?

Open Akagi201 opened this issue 10 years ago • 3 comments

Akagi201 avatar Sep 01 '14 12:09 Akagi201

No, it's not. It would be really cool if it was. I don't think there's a portable way to do this in standard C, but with the right macros, I suppose it could be revised to support POSIX threads or Win32 threads... I'd welcome thoughts on this.

mmueller avatar Sep 11 '14 07:09 mmueller

Will it work if an application forked say 100 processes? Even though it's not thread safe? Quite like to look of this logging library, just enough features, not too heavyweight!

ericcurtin avatar Jan 25 '17 11:01 ericcurtin

Never mind I see you used write syscall, so yeah it should work with multiple processes!

ericcurtin avatar Jan 25 '17 11:01 ericcurtin