[libc-commits] [libc] [libc] Replace `MutexLock` with `cpp::lock_guard` (PR #89340)

Vlad Mishel via libc-commits libc-commits at lists.llvm.org
Fri Apr 19 13:25:13 PDT 2024


vmishelcs wrote:

> If you put it in the commit description in the UI on github, then it will be retained when we squash+merge. Do you mean libstdc++, or GCC? Also, it's important that you didn't copy+paste the implementation. Using it for reference is very much in the spirit of Free Software though.

Yes, I used [this](https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/std_mutex.h) to essentially make sure my lock_guard implementation provides the same functionality. However, no copy-pasting was done in any of my code.



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


More information about the libc-commits mailing list