Re: Protecting against concurrent requests
If you have a situation that two threads may call oc_init_post then you must prevent both threads calling oc_init_post at the same time. You must add a mutex or some other similar guard before calling oc_init_post and then you can release it after calling oc_do_post. The same is true for oc_init_put and oc_do_put.
From: firstname.lastname@example.org <email@example.com> On Behalf Of josh@...
Sent: Wednesday, June 3, 2020 11:00 PM
Subject: [dev] Protecting against concurrent requests
I'm particularly interested in how the following scenario is prevented:
Looking over the example apps, most seem to provide protection against this by ensuring that requests are not created in interrupts, and/or requests are sent via a menu driven interface. Are there further safeguards against this concurrency issue, is it actually a nonissue, or am I misunderstanding something here?