468,250 Members | 1,604 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,250 developers. It's quick & easy.

Using boost pool library!

12
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
Apr 15 '08 #1
4 3080
gpraghuram
1,275 Expert 1GB
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Apr 15 '08 #2
mavrik
12
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Thanks for ur reply...
But, do u think that my requirement gets fulfilled by Boosts lib..?
I want that I should be able to define the memory in the beginning of application, which my application will be using.
Which I think is not possible by Boost's pool lib.
What do you say??
-Thanks
Apr 15 '08 #3
weaknessforcats
9,207 Expert Mod 8TB
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Apr 15 '08 #4
mavrik
12
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Thanks weaknessforcats....
I am seriously looking for something like that(CreateProcessHeap) on Linux/Solaris...
If I am able to create a memory pool Heap for my process, by which all memory needed by process will be taken from that Heap, then my job is actuallty done..
Do u have any idea??
I m also searching on google. :)
-Thanks
Apr 16 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by porschberg | last post: by
7 posts views Thread by sbobrows | last post: by
reply views Thread by ufnuceda | last post: by
3 posts views Thread by Chris Jones | last post: by
2 posts views Thread by mr_gees100_peas | last post: by
6 posts views Thread by Juha Nieminen | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.