Nothing Special   »   [go: up one dir, main page]

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

sys/chunked_ringbuffer: let crb_end_chunk() return size of the chunk #20942

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benpicco
Copy link
Contributor

Contribution description

It can be handy to know the size of the chunk that we just stored. Since we already have that information, it's very cheap to return that instead of true.

Testing procedure

Technically an API change, but now we already returned 0 in the error case and 1 on success, so changing bool -> int won't need any code changes.

Issues/PRs references

@github-actions github-actions bot added the Area: sys Area: System label Oct 28, 2024
@benpicco benpicco changed the title sys/chunked_ringbuffer: let crb_end_chunk() return size of the chunk sys/chunked_ringbuffer: let crb_end_chunk() return size of the chunk Oct 28, 2024
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 28, 2024
@riot-ci
Copy link
riot-ci commented Oct 28, 2024

Murdock results

✔️ PASSED

1b4e1af sys/chunked_ringbuffer: let crb_end_chunk() return size of the chunk

Success Failures Total Runtime
10214 0 10215 18m:07s

Artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants