67 pthread_mutex_t __lock;
Type definitions related to the guac_pool pool of unique integers.
guac_pool * guac_pool_alloc(int size)
Allocates a new guac_pool having the given minimum size.
void guac_pool_free(guac_pool *pool)
Frees the given guac_pool.
int guac_pool_next_int(guac_pool *pool)
Returns the next available integer from the given guac_pool.
void guac_pool_free_int(guac_pool *pool, int value)
Frees the given integer back into the given guac_pool.
Represents a single integer within a larger pool of integers.
Definition pool.h:71
int value
The integer value of this pool entry.
Definition pool.h:76
A pool of integers.
Definition pool.h:34
int min_size
The minimum number of integers which must have been returned by guac_pool_next_int before previously-...
Definition pool.h:41
int active
The number of integers currently in use.
Definition pool.h:46