/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* See COPYRIGHT in top-level directory.
*/
#ifndef _ZM_COND_H
#define _ZM_COND_H
#define ZM_CCOND_IF 1
/* default condition variable interface */
#define ZM_COND_IF @ZM_COND_IF@
#if ZM_COND_IF == ZM_CCOND_IF
#include <cond/zm_ccond.h>
/* types */
#define zm_cond_t struct zm_ccond
/* routines */
#define zm_cond_init(C) zm_ccond_init(C)
#define zm_cond_destroy(C) zm_ccond_destroy(C)
#define zm_cond_wait(C, L) zm_ccond_wait(C, L)
#define zm_cond_wait_c(C, L, ctxt) zm_ccond_wait(C, L, ctxt)
#define zm_cond_signal(C) zm_ccond_signal(C)
#define zm_cond_bcast(C) zm_ccond_bcast(C)
#else
#error "Unknown condition vairiable interface"
#endif /* ZM_COND_IF */
#endif /* _IZEM_COND_H */