SPIFFS VFS writing from multiple tasks
Posted: Fri Oct 22, 2021 9:15 pm
Hello,
On an ESP32 I have a SPIFFS mounted as a VFS. I have two FreeRTOS tasks: task A, and task B.
Task A is writing to File A (fwrite)
Task B is writing to File B (fwrite)
If they both are trying to write simultaneously does the SPI or VFS driver handle it or do I need to implement some type of mutex/semaphore? I think it's okay because fwrite is a blocking call so the tasks will each write syncronously, but I want to make sure.
Thanks!
On an ESP32 I have a SPIFFS mounted as a VFS. I have two FreeRTOS tasks: task A, and task B.
Task A is writing to File A (fwrite)
Task B is writing to File B (fwrite)
If they both are trying to write simultaneously does the SPI or VFS driver handle it or do I need to implement some type of mutex/semaphore? I think it's okay because fwrite is a blocking call so the tasks will each write syncronously, but I want to make sure.
Thanks!