[PATCH] D53049: Annotate scoped_lock as with scoped_lockable attribute

Louis Dionne via Phabricator reviews at reviews.llvm.org
Tue Oct 9 16:23:18 PDT 2018


ldionne added a comment.

Thanks a lot for taking a look so quickly!



================
Comment at: test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp:28
+static void scoped() {
+  std::scoped_lock<std::mutex> lock(m);
+  foo++;
----------------
ldionne wrote:
> What is the purpose of this added function?
Nevermind, I just read the comment on PR39234 and understood.


Repository:
  rCXX libc++

https://reviews.llvm.org/D53049





More information about the libcxx-commits mailing list