- 12 Nov, 2021 1 commit
-
-
Rosen Penev authored
SonarLint reports the latter to be better: std::scoped_lock basically provides the same feature as std::lock_guard, but is more generic: It can lock several mutexes at the same time, with a deadlock prevention mechanism (see {rule:cpp:S5524}). The equivalent code to perform simultaneous locking with std::lock_guard is significantly more complex. Therefore, it is simpler to use std::scoped_lock all the time, even when locking only one mutex (there will be no performance impact). Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Oct, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 21 Aug, 2021 1 commit
-
-
Rosen Penev authored
The latter is easier to read and is the "correct" thing to do. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 05 Aug, 2021 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
This way, we save the overhead for acquiring the tag_pool_lock.
-
Cebtenzzre authored
Also, use RemoveAll() instead of directly clearing TagBuilder::items in most cases, as its elements represent references that must be released. Closes #1023
-
Cebtenzzre authored
-
Cebtenzzre authored
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 08 Apr, 2020 1 commit
-
-
Rosen Penev authored
std::all_of becomes constexpr in C++20. I'm not sure it results in better performance. Found with useStlAlgorithm Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 1 commit
-
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 1 commit
-
-
Max Kellermann authored
-
- 05 Jul, 2019 1 commit
-
-
Max Kellermann authored
-
- 17 Jun, 2019 1 commit
-
-
Max Kellermann authored
-
- 19 Nov, 2018 1 commit
-
-
Max Kellermann authored
Since we switched from autotools to Meson in commit 94592c14, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
-
- 31 Oct, 2018 1 commit
-
-
Max Kellermann authored
-
- 20 Jan, 2018 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 20 Dec, 2017 1 commit
-
-
Max Kellermann authored
-
- 10 Nov, 2017 1 commit
-
-
Max Kellermann authored
-
- 12 Sep, 2017 1 commit
-
-
Max Kellermann authored
-
- 08 Feb, 2017 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 01 Mar, 2016 1 commit
-
-
Max Kellermann authored
-
- 26 Feb, 2016 1 commit
-
-
Max Kellermann authored
-
- 30 Sep, 2015 1 commit
-
-
Max Kellermann authored
-
- 24 Aug, 2015 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 06 Feb, 2015 1 commit
-
-
Max Kellermann authored
Build a table of pre-existing tag types before adding new items. The old way would check HasType() each time, which would return true after the first instance of that tag type had been added, preventing duplicate tag types to be merged. This broke duplicate tag types loaded from the state file, because this code path uses TagBuilder::Complement().
-
- 01 Jan, 2015 1 commit
-
-
Max Kellermann authored
-
- 26 Dec, 2014 1 commit
-
-
Max Kellermann authored
New in clang 3.6.
-
- 10 Oct, 2014 1 commit
-
-
Max Kellermann authored
-
- 29 Aug, 2014 1 commit
-
-
Max Kellermann authored
-
- 24 Apr, 2014 1 commit
-
-
Max Kellermann authored
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 08 Jan, 2014 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 07 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 03 Dec, 2013 1 commit
-
-
Max Kellermann authored
-