|
Boost : |
Subject: Re: [boost] Review Request: boost.lockfree
From: Christopher Schmidt (mr.chr.schmidt_at_[hidden])
Date: 2009-12-14 12:42:32
Tim Blechmann schrieb:
[snip]
> the code is available from my git repository [1], branch
> topic/freelist_tweaks. christopher (and others), what do you think about
> this approach?
That's exactly what I need. Many thanks for your work, Tim!
Just one comment: in the default ctor of the stack you pass 128 to the
ctor of the freelist. I think you should rather call the default ctor.
If the user really wants a static freelist, the static size should be
stated explicitly. For non-static freelists, there is in my opinion, no
need to pre-allocate nodes at all.
-Christopher
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk