player/Thread: move player_command_finished() to PlayerControl

This commit is contained in:
Max Kellermann
2015-11-05 00:38:09 +01:00
parent e6b37703da
commit 3a387643b3
2 changed files with 10 additions and 12 deletions

View File

@@ -263,6 +263,12 @@ struct PlayerControl {
ClientSignal();
}
void LockCommandFinished() {
Lock();
CommandFinished();
Unlock();
}
private:
/**
* Wait for the command to be finished by the player thread.