util/HugeAllocator: add SetName()
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2021 The Music Player Daemon Project
|
||||
* Copyright 2003-2022 The Music Player Daemon Project
|
||||
* http://www.musicpd.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -85,6 +85,10 @@ public:
|
||||
return n_allocated == buffer.size();
|
||||
}
|
||||
|
||||
void SetName(const char *name) noexcept {
|
||||
buffer.SetName(name);
|
||||
}
|
||||
|
||||
void DiscardMemory() noexcept {
|
||||
assert(empty());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user