Boost logo

Boost :

Subject: Re: [boost] [boost.lockfree] spsc_queue read/write_available
From: Tim Blechmann (tim_at_[hidden])
Date: 2015-06-11 11:53:28


> I am debugging a crash that I am getting inside of the pop method in
> spsc_queue from boost.lockfree. I am not sure exactly what is happening
> yet, but I do have one question. I call read_available and
> write_available a few times, and am wondering why read_available can
> only be called from the producer thread and why write_available can only
> be called from the consumer thread? Wouldn't it make sense to call
> read_available from the consumer, and write_available from the producer?
> Why is it the other way around?

good eye, looks like i fat-fingered the doxygen string :/

of course read_available should be called from the consumer and
write_available from the producer ... will fix this ...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk