> -----Original Message-----
> From: ext Ciprian Barbu [mailto:[email protected]]
> Sent: Monday, September 08, 2014 11:30 AM
> To: Savolainen, Petri (NSN - FI/Espoo)
> Cc: ext Mike Holmes; lng-odp
> Subject: Re: [lng-odp] odp_buffer_alloc and odp_buffer_free
> 
> On Wed, Sep 3, 2014 at 1:27 PM, Savolainen, Petri (NSN - FI/Espoo)
> <[email protected]> wrote:
> > Those operate on a pool. Alloc == remove a buffer from a pool, free ==
> > insert a buffer back to the pool it was allocated from.
> >
> >
> >
> > -Petri
> 
> Yeah, but you don't generally want to do an operation on a
> buffer_pool, you want a buffer. As a new user of ODP, I would look
> into odp_buffer.h for the API for allocating buffers.
> 
> If the implementation of odp_buffer_alloc resides in
> odp_buffer_pool.c, it doesn't mean it has to be reflected by the API
> as well.
> 

It also avoids circular dependency between .h files.

odp_buffer_pool.h depends on odp_buffer.h, but odp_buffer.h does not depend on 
odp_buffer_pool.h 

-Petri



_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to