This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

If non-reentrant funtion is interrupted, what wil happen?

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?

Parents
  • 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.

Reply
  • 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.

Children
No data