summaryrefslogtreecommitdiff
path: root/libddekit/condvar.c
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2009-12-15 06:35:25 +0100
committerZheng Da <zhengda1936@gmail.com>2009-12-15 06:35:25 +0100
commit1f30702285010c0921c4d8266096c49e6f3bd533 (patch)
treed30465f354f975644d0a9bda4bb720abaec611f4 /libddekit/condvar.c
parent056abee2aedbcdf8f072ebaecb9487d6cdaa4f21 (diff)
Add ddekit_condvar_deinit.
Diffstat (limited to 'libddekit/condvar.c')
-rw-r--r--libddekit/condvar.c4
1 files changed, 4 insertions, 0 deletions
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. */