|
Boost Users : |
Subject: Re: [Boost-users] (Newbie) Embedded programming, memory pools, and allocate_shared()
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2017-12-12 00:05:06
On Mon, Dec 11, 2017 at 1:43 PM, Steven Boswell II via Boost-users
<boost-users_at_[hidden]> wrote:
> Attached to this e-mail is a zip file containing my code so far.
> It's a modification of the sample code normally found at
> boost/libs/asio/example/cpp03/allocation/server.cpp .
> To use the enclosed Visual Studio solution, you'll need to set two
> environment variables.
> BOOST_HOME needs to be set to your Boost directory.
> BOOST_LIB needs to be set to where you've built the Boost DLLs.
> This project was built/run against Boost 1.64.
> Hopefully I didn't screw anything up while "depersonalizing" it.
What are you targeting? You mentioned C++/CLI, .NET, etc. Windows Embedded?
> fixed_pool_allocators.h contains the code I found necessary to allocate
> async-read/write handlers from memory-pools.
> The idea is to create fixed-size pools with items that are the exact size
> needed by their clients.
> I think that's a perfectly normal thing to want when trying to avoid dynamic
> memory allocation in an embedded programming environment.
> But as you can see, Boost doesn't exactly make it easy to find the typedefs
> that the pools need to determine the required amounts of space.
>
>
>
> I'm hoping someone can tell me that I should be using some simpler typedefs,
> provided by somewhere in Boost that I haven't found yet.
> Barring that, maybe someone can tell me that what I want to do with
> memory-pools here is too unconventional to expect Boost to support it
> easily.
> Or maybe someone will tell me that this isn't the right place to ask
> questions like these, and point me to somewhere more appropriate.
> I expected the boost-users mailing list to be the ideal place to ask such
> questions.
>
> -Steven
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net