Unverified Commit c4a3d184 authored by Vlad Mishel's avatar Vlad Mishel Committed by GitHub
Browse files

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



This PR address issue #89002.

#### Changes in this PR

* Added a simple implementation of `cpp::lock_guard` (an equivalent of
`std::lock_guard`) in libc/src/__support/CPP inspired by the libstdc++
implementation
* Added tests for `cpp::lock_guard` in
/libc/test/src/__support/CPP/mutex_test.cpp
* Replaced all references to `MutexLock` with `cpp::lock_guard`

---------

Co-authored-by: default avatarGuillaume Chatelet <gchatelet@google.com>
parent aacea0d0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment