notify: added notify_deinit()

Destroy the mutex when it is not used anymore.
This commit is contained in:
Max Kellermann
2008-09-24 07:14:11 +02:00
parent ee1d723ad7
commit a0272c2d61
9 changed files with 36 additions and 0 deletions

@@ -28,6 +28,11 @@ void dc_init(void)
dc.error = DECODE_ERROR_NOERROR;
}
void dc_deinit(void)
{
notify_deinit(&dc.notify);
}
void dc_command_wait(Notify *notify)
{
while (dc.command != DECODE_COMMAND_NONE) {