[PATCH] D54290: [libcxx] Provide thread annotations for shared_mutex
Louis Dionne via Phabricator
reviews at reviews.llvm.org
Fri Nov 9 08:41:50 PST 2018
ldionne accepted this revision.
ldionne added inline comments.
This revision is now accepted and ready to land.
================
Comment at: libcxx/include/shared_mutex:164
// Exclusive ownership
- void lock(); // blocking
- bool try_lock();
- void unlock();
+ void lock() _LIBCPP_THREAD_SAFETY_ANNOTATION(acquire_capability()); // blocking
+ bool try_lock() _LIBCPP_THREAD_SAFETY_ANNOTATION(try_acquire_capability(true));
----------------
Just making sure; those are only needed on the declarations?
Repository:
rCXX libc++
https://reviews.llvm.org/D54290
More information about the libcxx-commits
mailing list