commit | ee321dcce93603eeacbe39d2afba0265dc908687 | [log] [tgz] |
---|---|---|
author | Igor Kudrin <ikudrin@accesssoftek.com> | Thu Jan 14 15:03:44 2021 +0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 19 15:52:04 2021 -0800 |
tree | 5d16fee2c745b1395d949b052e96fd581527c6a0 | |
parent | 002a44e59247716e6c6121726c8d305dcf7bdf81 [diff] |
[libcxx testing] Fix UB in tests for std::lock_guard If mutex::try_lock() is called in a thread that already owns the mutex, the behavior is undefined. The patch fixes the issue by creating another thread, where the call is allowed. Differential Revision: https://reviews.llvm.org/D94656 GitOrigin-RevId: 78036360573c35ea9e6a697d2eed92db893b4850