Tool/software:
Hi Team,
I received question from customer regarding spinlock.
Is it possible to lock/unlock by calling the SPINLOCK API during an interrupt?
Best regards,
Mari Tsunoda
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi Team,
I received question from customer regarding spinlock.
Is it possible to lock/unlock by calling the SPINLOCK API during an interrupt?
Best regards,
Mari Tsunoda
Hey Mari,
It is a plausible use-case to lock/unlock during an interrupt service routine. Just remember the 3 requirements for mutual exclusion for access to a shared data structure via the spinlock module.
#2 of the list above might be of concern depending on the expectations of the ISR.
Best Regards,
Zackary Fleenor