roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.06k stars 211 forks source link

Slab pool ownership guard #594

Closed nolan-veed closed 12 months ago

nolan-veed commented 12 months ago

Why

For https://github.com/roc-streaming/roc-toolkit/issues/582

What

Testing

gavv commented 12 months ago

CI is failing (doxygen). BTW if you install doxygen and pass --enable-doxygen to scons, you'll be able to catch these issues locally. See https://roc-streaming.org/toolkit/docs/building/developer_cookbook.html

nolan-veed commented 12 months ago

Sorry about that.

gavv commented 12 months ago

LGTM, thanks!

gavv commented 12 months ago

Here is a small follow-up commit: 25e4d98307d43b28e7e28e8f364bf742ef1e0609

I think in practice both Slot and SlotHeader will be max-aligned, but since it's not guaranteed and explicit, I fixed the code to handle it.