- 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 1 commit
-
-
Max Kellermann authored
-
- 19 May, 2021 1 commit
-
-
Max Kellermann authored
Include the most specific header documented by MSDN instead.
-
- 05 Mar, 2021 1 commit
-
-
Max Kellermann authored
-
- 04 Mar, 2021 1 commit
-
-
Shen-Ta Hsieh authored
-
- 03 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 27 May, 2020 1 commit
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 17 Mar, 2020 1 commit
-
-
Max Kellermann authored
-
- 16 Mar, 2020 3 commits
-
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with -Wextra-semi Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. 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
-
- 09 Oct, 2019 1 commit
-
-
Max Kellermann authored
On linux-rt, kernel IRQ threads are configured with priority=50, and this change configures MPD somewhat below that priority, leaving some room for other programs to be configured in between. Closes https://github.com/MusicPlayerDaemon/MPD/issues/643
-
- 03 Aug, 2019 1 commit
-
-
Max Kellermann authored
Time to move on, two years after 2017.
-
- 17 Jun, 2019 1 commit
-
-
Max Kellermann authored
-
- 29 May, 2019 1 commit
-
-
Max Kellermann authored
-
- 07 May, 2019 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
On Windows, we keep using our own implementations, because GCC implements std::mutex and std::condition_variable with pthread emulation, which is not a good choice.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Prepare the transition to std::mutex.
-
- 26 Apr, 2019 1 commit
-
-
Max Kellermann authored
Just like std::condition_variable, which however has no way to specify the std::mutex directly.
-
- 25 Apr, 2019 1 commit
-
-
Max Kellermann authored
-
- 14 Mar, 2019 1 commit
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/507
-
- 19 Nov, 2018 2 commits
-
-
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.
-
Max Kellermann authored
This compile-time check got lost during the Meson transition.
-
- 31 Oct, 2018 2 commits
-
-
Max Kellermann authored
-
Florian Schlichting authored
Apparently on hurd-i386 __GLIBC__ is defined, but the pthread implementation is special and cannot be used with constexpr. Hence exclude __gnu_hurd__.
-
- 14 Oct, 2018 1 commit
-
-
Max Kellermann authored
So long, autotools! This is my last MPD related project to migrate away from it. It has its strengths, but also very obvious weaknesses and weirdnesses. Today, many of its quirks are not needed anymore, and are cumbersome and slow. Now welcome our new Meson overlords!
-
- 21 Sep, 2018 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 20 Aug, 2018 1 commit
-
-
Max Kellermann authored
-
- 16 Jul, 2018 1 commit
-
-
Yue Wang authored
-
- 15 Jul, 2018 1 commit
-
-
Yue Wang authored
Some Audio plugin (such as ALSA, and soon CoreAudio) already support microsecond level buffer time. However, current interval less than 1000 microseconds will cause a bug that the code treated as 0 ms.
-
- 06 Jul, 2018 1 commit
-
-
Max Kellermann authored
-
- 09 Feb, 2018 2 commits
-
-
Max Kellermann authored
There is a POSIX definition for sched_setscheduler(), but Linux does not implement that; instead of changing the process's scheduler, it only affects one thread. This has caused some confusion among application developers and C library developers. While glibc implements Linux semantics, Musl has made their sched_setscheduler() function an always-failing no-op, causing the error message "sched_setscheduler failed: Function not implemented". http://git.musl-libc.org/cgit/musl/commit/src/sched/sched_setscheduler.c?id=1e21e78bf7a5c24c217446d8760be7b7188711c2 Instead of relying on the C library which may be unreliable here, we now roll our own system call wrapper. Closes #218
-
Max Kellermann authored
Juse in cas glibc gets a wrapper for the system call which would then conflict with ours.
-
- 24 Jan, 2018 1 commit
-
-
Max Kellermann authored
-