On 2021-11-10, goldsi...@gmx.de <goldsi...@gmx.de> wrote:
>
>> I mean can two invocations of the sys_* (mailbox, mutex or semaphore)
>> functions happen "at the same time".  For example: can the execution
>> of one call to sys_{sem,mutex,mbox}_set_invalid() be interrupted or
>> suspended by another call to that same function? [The second
>> invocation would be for a different object obviously.] After the second
>> invocation finished, the first one would then resume.
>
> Yes, ok, that can of course happen.

I thought so. The original authors of the port clearly did not, even
though they seemed aware of the possiblity of some other functions
being called re-entrantly.

> There's no restriction between calling those functions on different
> objects.

OK, thanks — I've definitely got race conditions I need to fix. :)

> The only guarantee you get with lwIP is probably that allocation and
> deallocation points are safe...

I don't quite understand: what does "points are safe" mean?

Thanks again,

-- 
Grant







_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to