jamesmunns / bbqueue

A SPSC, lockless, no_std, thread safe, queue, based on BipBuffers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BBQueue object is not safe to move after splitting

jamesmunns opened this issue · comments

If the BBQueue moves after you have split, the Producer and Consumer will point to bad data. Producer and Consumer should probably take references to BBQueue to prevent this, or BBQueue should be Pin or something.

This is not an issue if you use the bbq!() macro, or Box methods.

This will be addressed by 0.4.0, see #37