|
Boost : |
Subject: Re: [boost] boost.lockfree update
From: Cory Nelson (phrosty_at_[hidden])
Date: 2010-07-24 17:54:09
On Sat, Jul 24, 2010 at 7:49 AM, Tim Blechmann <tim_at_[hidden]> wrote:
>> 1. "Limitation: The fifo class is limited to PODs". I really would like to
>> be able to use this with arbitrary objects. I'm sure PODs are required for
>> good reason, but a rationale somewhere would be greatly appreciated.
>
> it is a limitation of the michael/scott algorithm. if you want to pass non-
> pods, you have to use heap-allocated pointers.
It should be possible to automatically allocate non-pods from a freelist.
Might I suggest turning this library into a general concurrent data
structures library? Lock-free is great, but sometimes it's either not
available or is simply too slow outside of niche circumstances. I
think a more general library that includes lock-free along with other
less-than-lock-free algorithms would be more useful to the majority of
developers.
-- Cory Nelson http://int64.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk