MT allocator?
Dan S. Camper
dan@bti.net
Wed Jun 12 12:31:00 GMT 2002
On Sun, 2 Jun 2002 04:14:10 -0400, Phil Edwards wrote:
> On Sat, Jun 01, 2002 at 12:58:41PM +0200, Stefan Olsson wrote:
>
>> One solution would be to have both global and thread specific free
>> lists, such as the implementation at
>> http://www.bti.net/cgi-bin/bti/show_header.pl?file=bti_thread_alloc.h
>
> That does look interesting, although I'm instinctively frightened by user
> code that declares all its stuff inside namespace std...
This turned out to be a long-standing to-do item completely overlooked by
me. I had run into some namespace conflicts when writing the module and, in
order to just get thing running for another project, I simply dumped the
whole thing into std.
I've just posted a revised version of the entire BTI Core Library to our web
site, and it includes a couple of updates to this allocator. Most
importantly, everything except the specialization of the traits structs has
been placed into the bti namespace (which is where the rest of the library
resides).
I'd be interested to hear if anyone has implemented this module (or any of
them, for that matter) and what they found. Our library is actively
maintained, so bug reports and suggestions would be greatly appreciated.
Cheers!
DSC
PS - I've just barged into this discussion; I'm not on the libstc++ mailing
list. Replies should be cc'd to dan@bti.net or projects@bti.net. Thanks!
_________________________________________________________________________
Dan S. Camper Borrowed Time, Inc.
Software Thaumaturge http://www.bti.net
More information about the Libstdc++
mailing list