Fixed critical busy waiting #33
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/iot-system-sim!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "2-sensor-reader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whenever there was no writer on the sensor FIFO the sensor reader started busy waiting because the read() call would become non-blocking and it would just process the remains of the buffer without end. By opening the FIFO as O_RDWR, the sensor reader is a reader and a writer simultaneously, preventing the non-blocking call.