You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The consume method shifts data if >= half the buffer. I'm using the circular crate as a fixed-position buffer (for multi-threading) and need to control when data is moved.
Would you be OK for adding a new method (consume_noshift or something ilke that) which just adds cnt without shifting data ? I can provide a patch :)
The text was updated successfully, but these errors were encountered:
On Wed, Jun 5, 2019, 15:47 Pierre Chifflier ***@***.***> wrote:
Hi @Geal <https://github.com/Geal> ,
The consume method shifts data if >= half the buffer. I'm using the
circular crate as a fixed-position buffer (for multi-threading) and need
to control when data is moved.
Would you be OK for adding a new method (consume_noshift or something
ilke that) which just adds cnt without shifting data ? I can provide a
patch :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AAA5EAAC6PWTFZ6GSFRNXJ3PY67YJA5CNFSM4HTYGKJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXYY5CA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA5EAB3TWYI4ETTDA5GN73PY67YJANCNFSM4HTYGKJA>
.
Hi @Geal ,
The
consume
method shifts data if >= half the buffer. I'm using thecircular
crate as a fixed-position buffer (for multi-threading) and need to control when data is moved.Would you be OK for adding a new method (
consume_noshift
or something ilke that) which just addscnt
without shifting data ? I can provide a patch :)The text was updated successfully, but these errors were encountered: