Page 1 of 1

NVS functions thread-safe?

Posted: Wed Jun 07, 2017 7:32 am
by MalteJ
Hi,

are the NVS access functions for writing and reading thread safe or do I have to use a mutex in my user code when accessing/committing the flash to prevent concurrent access?

Thank you!

Best,
Malte

Re: NVS functions thread-safe?

Posted: Sat Jun 10, 2017 5:28 am
by ESP_igrr
NVS functions (C API) do locking internally, preventing concurrent access.

Re: NVS functions thread-safe?

Posted: Fri Apr 05, 2019 9:00 pm
by snahmad75
Can some one confirm it that it is thread safe. we found internal fatfs gets corrupted easily. does not sound thread safe.

Re: NVS functions thread-safe?

Posted: Mon Apr 08, 2019 3:11 am
by ESP_Sprite
Erm, ESP_Iggr just confirmed it is thread safe, one post above yours.

Re: NVS functions thread-safe?

Posted: Mon Apr 08, 2019 9:22 am
by snahmad75
Sorry bothering again. Is it thread safe against same namespace.