Lines Matching defs:pool

144 	 * No need to lock pool, we assume all meta sessions are closed.
442 session_pool_t *pool;
451 pool = &slots[slotnum].session_pool;
457 (void) pthread_mutex_lock(&pool->list_lock);
459 if (pool->idle_list_head != NULL) {
460 tmp_session = get_session(&(pool->idle_list_head), flags);
463 INSERT_INTO_LIST(pool->active_list_head, tmp_session);
465 pool->num_idle_sessions--;
466 (void) pthread_mutex_unlock(&pool->list_lock);
471 if (pool->persist_list_head != NULL) {
472 tmp_session = get_session(&(pool->persist_list_head), flags);
475 INSERT_INTO_LIST(pool->active_list_head, tmp_session);
477 (void) pthread_mutex_unlock(&pool->list_lock);
481 (void) pthread_mutex_unlock(&pool->list_lock);
515 (void) pthread_mutex_lock(&pool->list_lock);
516 INSERT_INTO_LIST(pool->active_list_head, new_session);
517 (void) pthread_mutex_unlock(&pool->list_lock);
530 session_pool_t *pool;
534 pool = &slots[session->slotnum].session_pool;
537 if (pool->persist_list_head == NULL &&
538 pool->idle_list_head == NULL &&
539 pool->active_list_head->next == NULL)
548 (pool->keep_one_alive && this_is_last_session);
550 if ((!must_retain) && (pool->num_idle_sessions > MAX_IDLE_SESSIONS)) {
554 (void) pthread_mutex_lock(&pool->list_lock);
556 REMOVE_FROM_LIST(pool->active_list_head, session);
560 INSERT_INTO_LIST(pool->persist_list_head, session);
561 (void) pthread_mutex_unlock(&pool->list_lock);
565 INSERT_INTO_LIST(pool->idle_list_head, session);
566 pool->num_idle_sessions++;
567 (void) pthread_mutex_unlock(&pool->list_lock);
571 (void) pthread_mutex_unlock(&pool->list_lock);