MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / LockEnqueueSong

Method LockEnqueueSong

src/player/Control.cxx:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void
217PlayerControl::LockEnqueueSong(std::unique_ptr<DetachedSong> song) noexcept
218{
219 assert(thread.IsDefined());
220 assert(song != nullptr);
221
222 std::unique_lock lock{mutex};
223 EnqueueSongLocked(lock, std::move(song));
224}
225
226void
227PlayerControl::EnqueueSongLocked(std::unique_lock<Mutex> &lock,

Callers 1

QueueSongOrderMethod · 0.80

Calls 1

IsDefinedMethod · 0.80

Tested by

no test coverage detected