 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Glenn G. Chappell Guest
|
Posted: Mon Mar 07, 2005 4:49 pm Post subject: Which Memory Models to Support? |
|
|
I am wondering what the current thinking is on what memory models
C++ will support in the future. In particular, last fall, on Artima,
Chuck Allison asked for suggested updates for C++. I wrote the
following, and I would like to know what people are thinking about
these issues.
--- Glenn G. Chappell wrote (on Artima):
| Quote: | (1) Consider making a statement about what kinds of memory
models C++ will support.
Example: I have been involved a number of projects in which
multiple processes had their own static spaces, but all had
access to a shared arena. It seems the world is moving away from
this, toward the multi-threaded model, in which every thread has
the same static space.
I don't have a problem with this move. But consider: I could
make an STL container accessible to all processes by putting it
in the shared arena and giving it a shared-memory allocator.
However, I cannot use the Boost shared_ptr in this context,
since it does dynamic allocation, but does not allow me to
specify an allocator.
I am not saying the Boost shared_ptr is "bad" (on the contrary,
I think it is very much needed). I am saying that we need to
think about things like this. Do we intend to support every
memory model under the sun? If so, then any shared_ptr that gets
added to the Standard Library needs to allow specification of an
allocator. If not, then we should make a explicit statement
about what memory models the Standard Library is intended to
support.
|
--
Glenn G. Chappell <><
Dept. of Mathematical Sciences
University of Alaska Fairbanks
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|