From 9e0f7dcd1a9c000a78cf283af4fa593e808ed374 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:04 +0200 Subject: added dc_command_finished() dc_command_finished() is invoked by the decoder thread when it has finished a command (sent by the player thread). It resets dc.command and wakes up the player thread. This combination was used at a lot of places, and by introducing this function, the code will be more readable. --- src/decode.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/decode.h') diff --git a/src/decode.h b/src/decode.h index 9418c878..2f60319a 100644 --- a/src/decode.h +++ b/src/decode.h @@ -67,4 +67,11 @@ void decoder_sleep(void); void decoderInit(void); +/** + * Called by the decoder thread when it has performed the requested + * command (dc->command). This function resets dc->command and wakes + * up the player thread. + */ +void dc_command_finished(void); + #endif -- cgit v1.2.3