PlatformLab / NanoLog

Nanolog is an extremely performant nanosecond scale logging system for C++ that exposes a simple printf-like API.
Other
3k stars 343 forks source link

TODO(syang0) Make this into a spin lock #27

Open JoelStienlet opened 4 years ago

JoelStienlet commented 4 years ago

Hello, In runtime/RuntimeLogger.h I see this "todo", so I want to share this link where Linus Torvalds explains some pitfalls of spin locks in userspace, and why using them may be a bad idea.