PlayerThread: use pc.cond instead of main_cond

The main_cond variable was completely unnecessary.  The pc.cond object
can be used for both main->pc and pc->main.
This commit is contained in:
Max Kellermann
2013-01-10 09:58:18 +01:00
parent ad15ca7104
commit 18076ac9b7
4 changed files with 2 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ player_command_finished_locked(struct player_control *pc)
assert(pc->command != PLAYER_COMMAND_NONE);
pc->command = PLAYER_COMMAND_NONE;
g_cond_signal(main_cond);
g_cond_signal(pc->cond);
}
static void