littlefs-project / littlefs

A little fail-safe filesystem designed for microcontrollers
BSD 3-Clause "New" or "Revised" License
5.13k stars 791 forks source link

Busy-waiting #895

Closed Systate closed 10 months ago

Systate commented 10 months ago

Hi,

We'd like to use littleFS in a ThreadX task. Does littleFS have any busy-wait loops that we'd need to remove and replace with blocking calls?

Thanks.

geky commented 10 months ago

Hi @Systate, LittleFS doesn't wait on its own, any busy-waiting necessary for IO occurs in the block device provided to LittleFS.

As long as the block device's IO operations (prog/read/erase) interact nicely with ThreadX, LittleFS should as well.