A global pool of Buffers. More...
Go to the source code of this file.
Functions | |
void | buf_pool_cleanup (void) |
Release the Buffer pool. | |
struct Buffer * | buf_pool_get (void) |
Get a Buffer from the pool. | |
void | buf_pool_release (struct Buffer **ptr) |
Return a Buffer to the pool. | |
A global pool of Buffers.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file pool.h.
void buf_pool_cleanup | ( | void | ) |
Release the Buffer pool.
Definition at line 67 of file pool.c.
struct Buffer * buf_pool_get | ( | void | ) |
void buf_pool_release | ( | struct Buffer ** | ptr | ) |
Return a Buffer to the pool.
[out] | ptr | Buffer to release |
Definition at line 94 of file pool.c.