
24 Jul
2016
24 Jul
'16
11:04 a.m.
On 07/23/2016 11:36 PM, Thomas Novotny wrote:
In the end Imade a custom version of spsc_queue. Getting this working (as a hack) was fairly easy, so I wanted to share it in the hope that a better solution might make it into a future version of the library.
FYI, there is a pull request about adding move support to spsc_queue, but the consequences have not been fully examined yet: https://github.com/boostorg/lockfree/pull/24 In the meanwhile, you can make a cleaner solution with a unique_ptr specialization of spsc_queue. See attachment.
bool push( T & t, T * buffer, size_t max_size )
T&& t