R-a-dio / valkyrie

R/a/dio software stack
https://r-a-d.io
MIT License
5 stars 3 forks source link

streamer: queue implementation should return a copy of entries #145

Open Wessie opened 3 months ago

Wessie commented 3 months ago

It currently returns a pointer to the live entries in the queue that (should) be mutex protected when accessed or mutated, but this makes code accidentally touching the entries after having received it from the queue a race condition.