Home > Back-end >  How the external interrupt while (1) cycle?
How the external interrupt while (1) cycle?

Time:04-24

Such as: I want to use another function to terminate the while (1) how to, to the multi-thread?

CodePudding user response:

You of this function is in the while (1)? If it is can consider to meet the conditions, break out.
If not in the while (1), then you need to call this function in the other thread (process), can consider to write a variable's value, in the while (1) determine whether a variable value break; The ~

CodePudding user response:

Press Ctrl + Break key
  • Related