void WRK_Init(void);
int WRK_Queue(struct workreq *wrq);
void WRK_QueueSession(struct sess *sp);
-void WRK_SumStat(struct worker *w);
+void WRK_SumStat(const struct worker *w);
void WRW_Reserve(struct worker *w, int *fd);
void WRW_Release(struct worker *w);
}
void
-HSH_DeleteObjHead(struct worker *w, struct objhead *oh)
+HSH_DeleteObjHead(const struct worker *w, struct objhead *oh)
{
AZ(oh->refcnt);
}
void
-HSH_Deref(struct worker *w, struct object **oo)
+HSH_Deref(const struct worker *w, struct object **oo)
{
struct object *o;
struct objhead *oh;
/*--------------------------------------------------------------------*/
static void
-wrk_sumstat(struct worker *w)
+wrk_sumstat(const struct worker *w)
{
Lck_AssertHeld(&wstat_mtx);
#define L0(n)
-#define L1(n) VSL_stats->n += w->stats->n
+#define L1(n) (VSL_stats->n += w->stats->n)
#define MAC_STAT(n, t, l, f, d) L##l(n);
#include "stat_field.h"
#undef MAC_STAT
}
void
-WRK_SumStat(struct worker *w)
+WRK_SumStat(const struct worker *w)
{
Lck_Lock(&wstat_mtx);
wrk_sumstat(w);
};
extern unsigned save_hash;
-void HSH_DeleteObjHead(struct worker *w, struct objhead *oh);
-void HSH_Deref(struct worker *w, struct object **o);
+void HSH_DeleteObjHead(const struct worker *w, struct objhead *oh);
+void HSH_Deref(const struct worker *w, struct object **o);
#endif /* VARNISH_CACHE_CHILD */