
9 Feb
2013
9 Feb
'13
8:48 a.m.
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