bin/varnishd/cache/cache_pool.c
void
Pool_Sumstat(const struct worker *wrk)
{

	Lck_Lock(&wstat_mtx);
	VSC_main_Summ_wrk(VSC_C_main, wrk->stats);
	Lck_Unlock(&wstat_mtx);
	memset(wrk->stats, 0, sizeof *wrk->stats);
}
/*--------------------------------------------------------------------
 * Summing of stats into global stats counters
 */
Summing of stats into global stats counters
Summing of stats into global stats counters
void
Pool_Sumstat(const struct worker *wrk)
{
	Lck_Lock(&wstat_mtx);
	VSC_main_Summ_wrk(VSC_C_main, wrk->stats);
	Lck_Unlock(&wstat_mtx);
	memset(wrk->stats, 0, sizeof *wrk->stats);
}
void Pool_Sumstat ( const struct worker * wrk ) { Lck_Lock ( & wstat_mtx ) ; VSC_main_Summ_wrk ( VSC_C_main , wrk -> stats ) ; Lck_Unlock ( & wstat_mtx ) ; memset ( wrk -> stats , 0 , sizeof * wrk -> stats ) ; }
Summing of stats into global stats counters
Summing of stats into global stats counters