modules/proxy/balancers/mod_lbmethod_bytraffic.c
/* assumed to be mutex protected by caller */
assumed to be mutex protected by caller
assumed to be mutex protected by caller
static apr_status_t reset(proxy_balancer *balancer, server_rec *s)
{
    int i;
    proxy_worker **worker;
    worker = (proxy_worker **)balancer->workers->elts;
    for (i = 0; i < balancer->workers->nelts; i++, worker++) {
        (*worker)->s->lbstatus = 0;
        (*worker)->s->busy = 0;
        (*worker)->s->transferred = 0;
        (*worker)->s->read = 0;
    }
    return APR_SUCCESS;
}
static apr_status_t reset ( proxy_balancer * balancer , server_rec * s ) { int i ; proxy_worker * * worker ; worker = ( proxy_worker * * ) balancer -> workers -> elts ; for ( i = 0 ; i < balancer -> workers -> nelts ; i ++ , worker ++ ) { ( * worker ) -> s -> lbstatus = 0 ; ( * worker ) -> s -> busy = 0 ; ( * worker ) -> s -> transferred = 0 ; ( * worker ) -> s -> read = 0 ; } return APR_SUCCESS ; }
assumed to be mutex protected by caller
assumed to be mutex protected by caller