HuaHuaY opened a new pull request, #398: URL: https://github.com/apache/iceberg-cpp/pull/398
Follow the answer in stackoverflow https://stackoverflow.com/a/60172828/11568166 1. `lock_guard` if you need to lock exactly 1 mutex for an entire scope. 2. `scoped_lock` if you need to lock a number of mutexes that is not exactly 1. 3. `unique_lock` if you need to unlock within the scope of the block (which includes use with a ).condition_variable So let clang-tidy only report `modernize-use-scoped-lock` warning when there are multiple `lock_guard`. -- 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]
