This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why can't I call pstorage functions from the callback?

I ran into an issue recently of attempting to make a pstorage_update call from the callback set in pstorage_register. It resulted in a difficult to track down error, so I'm posting the results here in case it helps someone else.

The symptoms of making the update request from the callback were that I sometimes saw data from a previous page written to the current page, although it did not do this consistently.

It's understandable that pstorage is not reentrant, although could be fixed.

Parents Reply Children
No Data
Related