[libc-commits] [libc] [libc] Lock the output stream for the 'puts' call (PR #76513)

via libc-commits libc-commits at lists.llvm.org
Tue Jan 2 07:28:36 PST 2024


================
@@ -15,8 +15,21 @@
 
 namespace LIBC_NAMESPACE {
 
+// Simple helper to unlock the file once destroyed.
+struct ScopedLock {
----------------
lntue wrote:

Can you wrap this internal struct in an anonymous namespace to prevent leaking symbols?

https://github.com/llvm/llvm-project/pull/76513


More information about the libc-commits mailing list