From 53e4b851883571c92073c87986759bd98dab9c7e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 18 Aug 2004 22:47:38 +0000 Subject: Thread safety and locking checks. --- daemon/bd.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'daemon/bd.h') diff --git a/daemon/bd.h b/daemon/bd.h index a59b1e1..5199615 100644 --- a/daemon/bd.h +++ b/daemon/bd.h @@ -44,16 +44,18 @@ typedef void (*bd_escape_value)(const ha_request_t* rq, ha_buffer_t* buf, */ typedef struct bd_context { - hsh_t* cache; /* Some cached records or basic */ - + /* Readonly ---------------------------------------------*/ bd_validate_digest f_validate_digest; bd_validate_basic f_validate_basic; bd_escape_value f_escape_value; + + /* Require locking --------------------------------------*/ + hsh_t* cache; /* Some cached records or basic */ } bd_context_t; -#define BD_CALLBACKS(a, b, c) { NULL, (a), (b), (c) } -#define BD_DEFAULTS { NULL, NULL, NULL } +#define BD_CALLBACKS(a, b, c) {(a), (b), (c), NULL } +#define BD_DEFAULTS { NULL, NULL, NULL, NULL } /* ---------------------------------------------------------------------------------- * Base Handler Functions -- cgit v1.2.3