SPIFFS VFS writing from multiple tasks

danpf1
Posts: 14
Joined: Mon May 10, 2021 2:59 pm

SPIFFS VFS writing from multiple tasks

Postby danpf1 » 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!

Who is online

Users browsing this forum: No registered users and 302 guests