Dear everyone: If non-reentrant funtion is interrupted ,will it cause error? In my non-reentrant funtion defined some local variables, if it is interrupted, non-reentrant funtion will not preserve local variables, It will cause error! How can I avoid this problem?
It's not the non-reentrancy of that function that causes your (suspected/actual?) problem. This will only cause problems if that interrupt actually does re-enter that particular function of yours. If you want to do that, then the function *must* be flagged as reentrant.