Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial support for non-primitive types #65

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

zktos
Copy link

@zktos zktos commented Jun 8, 2020

Initial attempt on making BBQueue generic, so it is possible to create and use a ring buffer with primitive or non-primitive types.

  • Made BBQueue generic over the element type
  • Framed versions of producer and consumer are available if element type is u8
  • BBBuffer is now a type alias for GenericBBBuffer (which breaks direct use of BBBuffer(...) constructors)

ZK and others added 7 commits May 25, 2020 23:46
Tests seem to be passing when type is u8, plain old data or Clone
* upstream/master:
  0.4.8 release
  Allow write access to a read grant (jamesmunns#64)

# Conflicts:
#	core/src/bbbuffer.rs
* master:
  0.4.8 release
  Allow write access to a read grant (jamesmunns#64)

# Conflicts:
#	core/src/bbbuffer.rs
Support non-primitive types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant