aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PlayerControl.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/PlayerControl.hxx b/src/PlayerControl.hxx
index 498f91143..4134cc08c 100644
--- a/src/PlayerControl.hxx
+++ b/src/PlayerControl.hxx
@@ -229,6 +229,20 @@ struct player_control {
}
/**
+ * A command has been finished. This method clears the
+ * command and signals the client.
+ *
+ * To be called from the player thread. Caller must lock the
+ * object.
+ */
+ void CommandFinished() {
+ assert(command != PLAYER_COMMAND_NONE);
+
+ command = PLAYER_COMMAND_NONE;
+ ClientSignal();
+ }
+
+ /**
* @param song the song to be queued; the given instance will
* be owned and freed by the player
*/