
On Sat, Jul 24, 2010 at 7:49 AM, Tim Blechmann <tim@klingt.org> 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