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

View File

@@ -29,6 +29,8 @@ typedef struct notify {
void notify_init(struct notify *notify);
void notify_deinit(struct notify *notify);
/**
* The thread which shall be notified by this object must call this
* function before any notify_wait() invocation. It locks the mutex.