-
Notifications
You must be signed in to change notification settings - Fork 491
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
Data Races #560
Comments
Sometimes i get random reboot on error. The cause of error is related to memory problem and I can not reproduce the error by doing the same things that led me to the error. I am not out of memory: RTOS heap => +10kBytes |
@Zaltora, critical section is of course an effective way of protecting from concurrent access. However that is also a bit heavy-handed approach. FreeRTOS also has a mutex API (see the FreeRTOS) docs, which you can even use from ISRs. To your original question: yes, race conditions can be a problem even though we have only one core - after all there are multiple concurrent tasks running. |
Yeah forget about mutex, i will use them.
|
Just a question. I got multiple global variable ( Read-only acces through a extern const pointer outside of the file) in my app.
It is possible to get data races problem with esp8266 (one core) ?
If yes, using "Critical rtos API" can help ?
bonus: esp32 can get this problem (2 core)?
The text was updated successfully, but these errors were encountered: