If it's shared, make it volatile. If it's only accessed by one side or the other, no need for volatile. When in doubt, make it volatile. loop side access must be protected by disabling interrupts.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16