mod_perl2 User's Guide
By Stas Bekman, Jim Brandt
By Stas Bekman, Eric Cholet
use APR::BucketAlloc (); $ba = APR::BucketAlloc->new($pool); $ba->destroy;
APR::BucketAlloc is used for bucket allocation.
$ba = APR::BucketAlloc->new($pool);
The pool used to create this object.
The new object.
use APR::BucketAlloc (); use APR::Pool (); my $ba = APR::BucketAlloc->(APR::Pool->pool); my $eos_b = APR::Bucket::eos_create($ba);
The freelist to destroy.
Once destroyed this object may not be used again.
You need to destroy
$ba only if you have created it via
APR::BucketAlloc->new. If you try to destroy an
allocation not created by this method, you will get a segmentation
Moreover normally it is not necessary to destroy allocators, since the pool which created them will destroy them during that pool's cleanup phase.
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.