yiguolei commented on code in PR #63109:
URL: https://github.com/apache/doris/pull/63109#discussion_r3214673200


##########
be/src/common/thread_safety_annotations.h:
##########
@@ -93,6 +94,27 @@ class CAPABILITY("mutex") AnnotatedMutex {
     std::mutex _mutex;
 };
 
+// Annotated shared mutex wrapper for use with Clang thread safety analysis.
+// Wraps std::shared_mutex and provides both exclusive and shared capability
+// operations so GUARDED_BY / REQUIRES_SHARED / etc. can reference it.
+class CAPABILITY("mutex") AnnotatedSharedMutex {
+public:

Review Comment:
   我们使用这个封装的API,跟直接使用lock的各种方法是什么区别?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to