Lines Matching defs:cur
456 mpm_gen_info_t *cur;
463 cur = APR_RING_FIRST(geninfo);
464 while (cur != APR_RING_SENTINEL(geninfo, mpm_gen_info_t, link) &&
465 cur->gen != gen) {
466 cur = APR_RING_NEXT(cur, link);
469 if (cur == APR_RING_SENTINEL(geninfo, mpm_gen_info_t, link)) {
475 cur->done = 1;
476 if (cur->active == 0) {
477 end_gen(cur);
493 mpm_gen_info_t *cur;
504 cur = APR_RING_FIRST(geninfo);
505 while (cur != APR_RING_SENTINEL(geninfo, mpm_gen_info_t, link) &&
506 cur->gen != gen) {
507 cur = APR_RING_NEXT(cur, link);
513 if (cur == APR_RING_SENTINEL(geninfo, mpm_gen_info_t, link)) {
516 cur = APR_RING_FIRST(unused_geninfo);
517 APR_RING_REMOVE(cur, link);
518 cur->active = cur->done = 0;
521 cur = apr_pcalloc(s->process->pool, sizeof *cur);
523 cur->gen = gen;
524 APR_RING_ELEM_INIT(cur, link);
525 APR_RING_INSERT_HEAD(geninfo, cur, mpm_gen_info_t, link);
528 ++cur->active;
532 if (cur == APR_RING_SENTINEL(geninfo, mpm_gen_info_t, link)) {
538 --cur->active;
539 if (!cur->active && cur->done) { /* no children, server has stopped/restarted */
540 end_gen(cur);