MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vu3xoh/how_to_write_the_perfect_function/p60n8ad/?context=3
r/cpp • u/parkotron • Aug 21 '26
24 comments sorted by
View all comments
Show parent comment
2
Google's GUARDED_BY is a good way to handle this. It's quite useful. https://source.chromium.org/chromium/chromium/src/+/main:base/thread_annotations.h;l=59
View all comments
Show parent comment
2
u/CandyCrisis Aug 26 '26
Google's GUARDED_BY is a good way to handle this. It's quite useful. https://source.chromium.org/chromium/chromium/src/+/main:base/thread_annotations.h;l=59