Declaration for caching pool. Application doesn't normally need to care about the contents of this struct, it is only provided here because application need to define an instance of this struct (we can not allocate the struct from a pool since there is no pool factory yet!).
Forward declaration for caching pool, a pool factory implementation.
Current factory's capacity, i.e. number of bytes that are allocated and available for application in this factory. The factory's capacity represents the size of all pools kept by this factory in it's free list, which will be returned to application when it requests to create a new pool.
Pool factory interface, must be declared first.
Lists of pools in the cache, indexed by pool size.
Maximum size that can be held by this factory. Once the capacity has exceeded max_capacity, further pj_pool_release() will flush the pool. If the capacity is still below the max_capacity, pj_pool_release() will save the pool to the factory's free list.
The maximum size of memory used by application throughout the life of the caching pool.
Number of pools currently held by applications. This number gets incremented everytime pj_pool_create() is called, and gets decremented when pj_pool_release() is called.
List of pools currently allocated by applications.
Total size of memory currently used by application.
The documentation for this struct was generated from the following files: