MPD
0.20.18
|
This class handles Song removal. More...
#include <Remove.hxx>
Public Member Functions | |
UpdateRemoveService (EventLoop &_loop, DatabaseListener &_listener) | |
void | Remove (std::string &&uri) |
Sends a signal to the main thread which will in turn remove the song: from the sticker database and from the playlist. More... | |
This class handles Song removal.
It defers the action to the main thread to ensure that all references to the Song are gone.
Definition at line 38 of file Remove.hxx.
|
inline |
Definition at line 46 of file Remove.hxx.
void UpdateRemoveService::Remove | ( | std::string && | uri | ) |
Sends a signal to the main thread which will in turn remove the song: from the sticker database and from the playlist.
This serialized access is implemented to avoid excessive locking.