Subject: Re: [boost] Proposal: Monotonic Containers- Thread specific monotonic allocator
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-06-21 13:06:14
----- Original Message -----
From: "Christian Schladetsch" <christian.schladetsch_at_[hidden]>
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
> 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?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk