third_party/cairo/src/cairo-tor22-scan-converter.c
static void
pool_reset (struct pool *pool)
{
    /* Transfer all used chunks to the chunk free list. */
    struct _pool_chunk *chunk = pool->current;
    if (chunk != pool->sentinel) {
	while (chunk->prev_chunk != pool->sentinel) {
	    chunk = chunk->prev_chunk;
	}
	chunk->prev_chunk = pool->first_free;
	pool->first_free = pool->current;
    }
    /* Reset the sentinel as the current chunk. */
    pool->current = pool->sentinel;
    pool->sentinel->size = 0;
}
/* Relinquish all pool_alloced memory back to the pool. */
Relinquish all pool_alloced memory back to the pool.
Relinquish all pool_alloced memory back to the pool .
static void
pool_reset (struct pool *pool)
{
    struct _pool_chunk *chunk = pool->current;
    if (chunk != pool->sentinel) {
	while (chunk->prev_chunk != pool->sentinel) {
	    chunk = chunk->prev_chunk;
	}
	chunk->prev_chunk = pool->first_free;
	pool->first_free = pool->current;
    }
    pool->current = pool->sentinel;
    pool->sentinel->size = 0;
}
static void pool_reset ( struct pool * pool ) { struct _pool_chunk * chunk = pool -> current ; if ( chunk != pool -> sentinel ) { while ( chunk -> prev_chunk != pool -> sentinel ) { chunk = chunk -> prev_chunk ; } chunk -> prev_chunk = pool -> first_free ; pool -> first_free = pool -> current ; } pool -> current = pool -> sentinel ; pool -> sentinel -> size = 0 ; }
Relinquish all pool_alloced memory back to the pool.
Relinquish all pool_alloced memory back to the pool .
/* Transfer all used chunks to the chunk free list. */ /* Reset the sentinel as the current chunk. */