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