|
Boost : |
Subject: Re: [boost] [Lockfree] ringbuffer
From: Tim Blechmann (tim_at_[hidden])
Date: 2013-02-09 03:48:23
hi,
> Now that I've been using lockfree::spsc_queue a bit, I was wondering why
> there is no method to retrieve write_available() on the producer end. It
> seems like it would be more efficient to be able to retrieve this before
> writing in some cases, like say when you want to overwrite old values from
> the producer thread in order to keep the data fresh. Instead, I'm having
> to do two push()'s.
this getting the available read/write space for the spsc_queue will be
in the next release ... have implemented it, but haven't pushed it out,
yet. also, one will be able to consume elements via a functor (or lambda
function).
tim
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk