webrtc/rtc_base/synchronization
Danil Chapovalov 07eaddf939 Inline assert in RTC_DCHECK_RUN_ON macro
clangd ignores ASSERT_EXCLUSIVE_LOCK macro attached to an inline function in header, thus IDEs relying on clangd issue false positive warnings about members acceesses without the check of the current sequence.
Attaching assert attribute to an inlined lambda function seems to solve that issue

Bug: None
Change-Id: I6199fee26061aa4223f2e3ea7b7b14bb5820c0bc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270480
Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37678}
2022-08-03 13:28:28 +00:00
..
BUILD.gn Move location out of rtc_base_approved 2022-04-19 21:57:48 +00:00
DEPS Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
mutex.h Reland "Delete unused class GlobalMutex" 2022-04-08 10:02:08 +00:00
mutex_abseil.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_benchmark.cc Mutex: Temporarily add re-entry CHECK. 2020-06-10 07:45:50 +00:00
mutex_critical_section.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_pthread.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_unittest.cc Reland "Delete unused class GlobalMutex" 2022-04-08 10:02:08 +00:00
sequence_checker_internal.cc Permit current queue reference to be null on sequence checker creation 2021-11-15 09:39:10 +00:00
sequence_checker_internal.h Inline assert in RTC_DCHECK_RUN_ON macro 2022-08-03 13:28:28 +00:00
yield.cc Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
yield.h Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
yield_policy.cc Add pthread thread-local storage support for ScopedYieldPolicy 2019-07-19 14:33:53 +00:00
yield_policy.h Deleting copy constructors for Scoped* classes. 2019-03-25 09:05:29 +00:00
yield_policy_unittest.cc In rtc_base/ and api/ replace mock macros with unified MOCK_METHOD macro 2020-05-14 19:33:26 +00:00