condition.h File Reference

#include <isc/mutex.h>

Go to the source code of this file.


#define ISC_CONDITION_H   1
#define isc_condition_init(cp)   (*(cp) = 0, ISC_R_SUCCESS)
#define isc_condition_wait(cp, mp)   isc__nothread_wait_hack(cp, mp)
#define isc_condition_waituntil(cp, mp, tp)   ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)
#define isc_condition_signal(cp)   isc__nothread_signal_hack(cp)
#define isc_condition_broadcast(cp)   ((void)(cp), ISC_R_NOTIMPLEMENTED)
#define isc_condition_destroy(cp)   (*(cp) == 0 ? (*(cp) = -1, ISC_R_SUCCESS) : ISC_R_UNEXPECTED)


typedef int isc_condition_t


isc_result_t isc__nothread_wait_hack (isc_condition_t *cp, isc_mutex_t *mp)
isc_result_t isc__nothread_signal_hack (isc_condition_t *cp)

Define Documentation

#define ISC_CONDITION_H   1

Definition at line 32 of file condition.h.

#define isc_condition_init ( cp   )     (*(cp) = 0, ISC_R_SUCCESS)

Definition at line 41 of file condition.h.

Referenced by isc__app_ctxstart(), isc__taskmgr_create(), and isc__timermgr_create().

#define isc_condition_wait ( cp,
mp   )     isc__nothread_wait_hack(cp, mp)

Definition at line 44 of file condition.h.

#define isc_condition_waituntil ( cp,
tp   )     ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)

Definition at line 47 of file condition.h.

#define isc_condition_signal ( cp   )     isc__nothread_signal_hack(cp)

Definition at line 50 of file condition.h.

#define isc_condition_broadcast ( cp   )     ((void)(cp), ISC_R_NOTIMPLEMENTED)

Definition at line 53 of file condition.h.

#define isc_condition_destroy ( cp   )     (*(cp) == 0 ? (*(cp) = -1, ISC_R_SUCCESS) : ISC_R_UNEXPECTED)

Definition at line 56 of file condition.h.

Referenced by isc__app_ctxstart(), isc__taskmgr_create(), isc__timermgr_create(), isc__timermgr_destroy(), and manager_free().

Typedef Documentation

typedef int isc_condition_t

Definition at line 36 of file condition.h.

Function Documentation

isc_result_t isc__nothread_wait_hack ( isc_condition_t cp,
isc_mutex_t mp 

Definition at line 542 of file app.c.

References evloop(), INSIST, ISC_FALSE, ISC_R_RELOAD, ISC_R_SUCCESS, ISC_TRUE, UNUSED, isc__appctx::want_reload, and isc__appctx::want_shutdown.

isc_result_t isc__nothread_signal_hack ( isc_condition_t cp  ) 

Definition at line 568 of file app.c.

References INSIST, ISC_R_SUCCESS, ISC_TRUE, UNUSED, and isc__appctx::want_shutdown.

Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha