util/IntrusiveList: add enum LinkMode

Compile-time code simplification.
This commit is contained in:
Max Kellermann
2022-11-12 08:52:58 +01:00
parent 3023816491
commit fb5d77158a
14 changed files with 132 additions and 81 deletions

View File

@@ -51,7 +51,7 @@ static constexpr unsigned DEVICE_PLAYLIST = -3;
class SongFilter;
struct Directory : IntrusiveListHook {
struct Directory : IntrusiveListHook<> {
/* Note: the #IntrusiveListHook is protected with the global
#db_mutex. Read access in the update thread does not need
protection. */

View File

@@ -39,7 +39,7 @@ class ArchiveFile;
* A song file inside the configured music directory. Internal
* #SimpleDatabase class.
*/
struct Song : IntrusiveListHook {
struct Song : IntrusiveListHook<> {
/* Note: the #IntrusiveListHook is protected with the global
#db_mutex. Read access in the update thread does not need
protection. */