VCD: Add GUARDED_BY() for variables need lock
So that it will report error at compile time when we forget to request the lock before accessing the variables. Bug: b/176461326 Test: Build successfully Change-Id: Iac8404fc609ec7a6b2e86bbbdb3e71662e71aa69 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602966 Commit-Queue: Wei Lee <wtlee@chromium.org> Reviewed-by:Shik Chen <shik@chromium.org> Auto-Submit: Wei Lee <wtlee@chromium.org> Cr-Commit-Position: refs/heads/master@{#841932}
Showing
Please register or sign in to comment