[PATCH] D53049: Annotate scoped_lock as with scoped_lockable attribute

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


ldionne accepted this revision.
ldionne added inline comments.
This revision is now accepted and ready to land.


================
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++;
----------------
What is the purpose of this added function?


Repository:
  rCXX libc++

https://reviews.llvm.org/D53049





More information about the libcxx-commits mailing list