Lines Matching refs:pool

148 	 * No need to lock pool, we assume all meta sessions are closed.
447 session_pool_t *pool;
456 pool = &slots[slotnum].session_pool;
462 (void) pthread_mutex_lock(&pool->list_lock);
464 if (pool->idle_list_head != NULL) {
465 tmp_session = get_session(&(pool->idle_list_head), flags);
468 INSERT_INTO_LIST(pool->active_list_head, tmp_session);
470 pool->num_idle_sessions--;
471 (void) pthread_mutex_unlock(&pool->list_lock);
476 if (pool->persist_list_head != NULL) {
477 tmp_session = get_session(&(pool->persist_list_head), flags);
480 INSERT_INTO_LIST(pool->active_list_head, tmp_session);
482 (void) pthread_mutex_unlock(&pool->list_lock);
486 (void) pthread_mutex_unlock(&pool->list_lock);
520 (void) pthread_mutex_lock(&pool->list_lock);
521 INSERT_INTO_LIST(pool->active_list_head, new_session);
522 (void) pthread_mutex_unlock(&pool->list_lock);
535 session_pool_t *pool;
539 pool = &slots[session->slotnum].session_pool;
542 if (pool->persist_list_head == NULL &&
543 pool->idle_list_head == NULL &&
544 pool->active_list_head->next == NULL)
553 (pool->keep_one_alive && this_is_last_session);
555 if ((!must_retain) && (pool->num_idle_sessions > MAX_IDLE_SESSIONS)) {
559 (void) pthread_mutex_lock(&pool->list_lock);
561 REMOVE_FROM_LIST(pool->active_list_head, session);
565 INSERT_INTO_LIST(pool->persist_list_head, session);
566 (void) pthread_mutex_unlock(&pool->list_lock);
570 INSERT_INTO_LIST(pool->idle_list_head, session);
571 pool->num_idle_sessions++;
572 (void) pthread_mutex_unlock(&pool->list_lock);
576 (void) pthread_mutex_unlock(&pool->list_lock);