
21 Jun
2009
21 Jun
'09
5:06 p.m.
Hi, ----- Original Message ----- From: "Christian Schladetsch" <christian.schladetsch@gmail.com> To: <boost@lists.boost.org> Sent: Thursday, June 18, 2009 12:10 AM Subject: Re: [boost] Proposal: Monotonic Containers
Steven> Allowing both local storage and a single global storage in the same allocator type seems like a bad idea to me. If you don't do any locking, then the global storage will not play well with threads.
That is a good point. On considering this, I am considering introducing shared_allocator<T>.
Thanks for the idea of introducing shared_allocator<T>.
what do you think about having a monotonic allocator using a thread specific storage so this allocator will not need to use a mutex to protect the allocation? Best, Vicente