From 1f30702285010c0921c4d8266096c49e6f3bd533 Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Tue, 15 Dec 2009 06:35:25 +0100 Subject: Add ddekit_condvar_deinit. --- libddekit/condvar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libddekit/condvar.c') diff --git a/libddekit/condvar.c b/libddekit/condvar.c index 391a20fa..55c57f8b 100644 --- a/libddekit/condvar.c +++ b/libddekit/condvar.c @@ -21,6 +21,10 @@ ddekit_condvar_t *ddekit_condvar_init() { return (ddekit_condvar_t *) cvp; } +void ddekit_condvar_deinit(ddekit_condvar_t *cvp) { + condition_free (&cvp->cond); +} + void ddekit_condvar_wait(ddekit_condvar_t *cvp, ddekit_lock_t *mp) { /* This isn't nice. The encapsulation is broken. * TODO I can merge the two files condvar.c and lock.c. */ -- cgit v1.2.3