]>
begriffs open source - freertos/commit
Fix race condition bugs when reading and writing to message buffers (#264)
* Fix inaccuracies in prvWriteBytesToBuffer description
* Perform atomic message write in prvWriteMessageToBuffer
* Remove unnecessary length arg from prvReadMessageFromBuffer
* Perform atomic message read in prvReadBytesFromBuffer
* Apply SpacesAvailable() fix
Original author: RichardBarry
* Apply review feedback
* Edit some prv functions for simplicity and consistency
- prvWriteMessageToBuffer
- prvReadMessageFromBuffer
- prvWriteBytesToBuffer
- prvReadBytesFromBuffer
* Significant simplification of prvWriteMessageToBuffer
* fixup off-by-one comment indentation
Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com>