NAME
APR::BucketAlloc - Perl API for Bucket Allocation
SSyynnooppssiissuse APR::BucketAlloc ();
$ba = APR::BucketAlloc->new($pool);
$ba->destroy;
DDeessccrriippttiioonn"APR::BucketAlloc" is used for bucket allocation.
""nneeww""Create an "APR::BucketAlloc" object:
$ba = APR::BucketAlloc->new($pool);
class: "APR::BucketAlloc"
arg1: $pool ( "APR::Pool object" )
The pool used to create this object.ret: $ba ( "APR::BucketAlloc object" )
The new object. since: 2.0.00 This bucket allocation list (freelist) is used to create new buckets(via "APR::Bucket->new") and bucket brigades (via "APR::Brigade->new").
You only need to use this method if you aren't running under httpd. If you are running under modperl, you already have a bucket allocationavailable via "$c->bucketalloc" and "$bb->bucketalloc".
Example:use APR::BucketAlloc ();
use APR::Pool ();my $ba = APR::BucketAlloc->(APR::Pool->pool);
my $eosb = APR::Bucket::eoscreate($ba);
""ddeessttrrooyy""Destroy an "APR::BucketAlloc object":
$ba->destroy;
arg1: $ba ( "APR::BucketAlloc object" )
The freelist to destroy. ret: no return value since: 2.0.00 Once destroyed this object may not be used again.You need to destroy $ba oonnllyy 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 fault. Moreover normally it is not necessary to destroy allocators, since the pool which created them will destroy them during that pool's cleanup phase. SSeeee AAllssoo modperl 2.0 documentation. CCooppyyrriigghhtt modperl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AAuutthhoorrss The modperl development team and numerous contributors.perl v5.a8p.a8chemodperl-101.1~2::mo2d00p5e-r1l0-22.00.2::docs::api::APR::BucketAlloc(3)