This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



apache_mod_perl-103~96::mod_perl-2.0..0.4::docs::api::APR::BucketAlloc(3)



NAME
       APR::BucketAlloc - Perl API for Bucket Allocation

Synopsis
         use APR::BucketAlloc ();
         $ba = APR::BucketAlloc->new($pool);
         $ba->destroy;

Description
       "APR::BucketAlloc" is used for bucket allocation.

       "new"

       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
       mod_perl, you already have a bucket allocation available via "$c->bucket_alloc" and
       "$bb->bucket_alloc".

       Example:

         use APR::BucketAlloc ();
         use APR::Pool ();
         my $ba = APR::BucketAlloc->(APR::Pool->pool);
         my $eos_b = APR::Bucket::eos_create($ba);

       "destroy"

       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 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 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.

See Also
       mod_perl 2.0 documentation.

Copyright
       mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.

Authors
       The mod_perl development team and numerous contributors.



perl v5.10.0                          apache_mod_-16::mod_perl-2.0.4::docs::api::APR::BucketAlloc(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.