Lines Matching refs:rl
141 apr_reslist_t *rl = data_;
145 apr_thread_mutex_lock(rl->listlock);
148 while (rl->nidle > 0) {
150 res = pop_resource(rl);
151 rl->ntotal--;
152 rv1 = destroy_resource(rl, res);
157 free_container(rl, res);
160 assert(rl->nidle == 0);
161 assert(rl->ntotal == 0);
164 apr_thread_mutex_unlock(rl->listlock);
165 apr_thread_mutex_destroy(rl->listlock);
166 apr_thread_cond_destroy(rl->avail);
260 apr_reslist_t *rl;
280 rl = apr_pcalloc(pool, sizeof(*rl));
281 rl->pool = pool;
282 rl->min = min;
283 rl->smax = smax;
284 rl->hmax = hmax;
285 rl->ttl = ttl;
286 rl->constructor = con;
287 rl->destructor = de;
288 rl->params = params;
290 APR_RING_INIT(&rl->avail_list, apr_res_t, link);
291 APR_RING_INIT(&rl->free_list, apr_res_t, link);
294 rv = apr_thread_mutex_create(&rl->listlock, APR_THREAD_MUTEX_DEFAULT,
299 rv = apr_thread_cond_create(&rl->avail, pool);
305 rv = apr_reslist_maintain(rl);
309 reslist_cleanup(rl);
313 apr_pool_cleanup_register(rl->pool, rl, reslist_cleanup,
316 *reslist = rl;
464 APU_DECLARE(void) apr_reslist_cleanup_order_set(apr_reslist_t *rl,
467 apr_pool_cleanup_kill(rl->pool, rl, reslist_cleanup);
469 apr_pool_pre_cleanup_register(rl->pool, rl, reslist_cleanup);
471 apr_pool_cleanup_register(rl->pool, rl, reslist_cleanup,