11 Jun
2015
11 Jun
'15
3:53 p.m.
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 ...