Hello,
is the SD access (via SPI) and the vsfatfs threadsafe ? So can I open / read / write on file from on thread and ano ther file from an other thread ?
IN lwip there are the functions with _r for being threadsafe.
Reiner
vsfat - threadsafe
Re: vsfat - threadsafe
Yes, you should be able to use open/read/write files from multiple threads. Be aware though that FatFS library does not allow certain kinds of operations to be done in parallel on the same file. For example, you will get an error if you open a file in one thread and try to rename the same file in another thread. Working with different files should work though.
-
- Posts: 39
- Joined: Tue Mar 20, 2018 6:28 pm
Re: vsfat - threadsafe
Thanks !
I have build a web server on ESP32 and downloading files will be done in different tasks for each file
I have build a web server on ESP32 and downloading files will be done in different tasks for each file
Who is online
Users browsing this forum: No registered users and 143 guests