This patch moves more includes (most of them, to tell the truth) to common/include directory. This completes the list of includes needed to compile current trunk with the new libc (but to do that you need more patches in queue). This patch also contains some modification (for compilation with new headers) to the common includes under __NBSD_LIBC, the define used in mk script to specialize compilation with new includes.
32 lines
1 KiB
C
32 lines
1 KiB
C
#ifndef _ddekit_condvar_h
|
|
#define _ddekit_condvar_h
|
|
|
|
/** \file ddekit/condvar.h */
|
|
#include <ddekit/ddekit.h>
|
|
|
|
#include <ddekit/lock.h>
|
|
|
|
struct ddekit_condvar;
|
|
typedef struct ddekit_condvar ddekit_condvar_t;
|
|
|
|
/* Initialize conditional variable. */
|
|
_PROTOTYPE( ddekit_condvar_t * ddekit_condvar_init, (void));
|
|
|
|
/* Uninitialize conditional variable. */
|
|
_PROTOTYPE( void ddekit_condvar_deinit, (ddekit_condvar_t *cvp));
|
|
|
|
/* Wait on a conditional variable. */
|
|
_PROTOTYPE( void ddekit_condvar_waiti, (ddekit_condvar_t *cvp,
|
|
ddekit_lock_t *mp));
|
|
|
|
/* Wait on a conditional variable at most until a timeout expires. (UNIMPL) */
|
|
_PROTOTYPE( int ddekit_condvar_wait_timed, (ddekit_condvar_t *cvp,
|
|
ddekit_lock_t *mp, int timo));
|
|
|
|
/* Send signal to the next one waiting for condvar. */
|
|
_PROTOTYPE( void ddekit_condvar_signal, (ddekit_condvar_t *cvp));
|
|
|
|
/* Send signal to all threads waiting for condvar. */
|
|
_PROTOTYPE( void ddekit_condvar_broadcast, (ddekit_condvar_t *cvp));
|
|
|
|
#endif
|