Hi
My question is like:
There are two modules A and B, if in module A (e.g. push a button), it sends a flag = true to module B where there is while loop:
Code:
while(flag){ do something}
in normal case, this could cause system busy and no responding because this program is only excuting the infinite while loop in module B, but my idea is that if push button again in module A,
---> flag = false, and module B would stop loop.
Here I've to use while loop to reach my goal or is there any other way to get the same goal?
I hope I make this problem clear , Thanks for your help much