Questions tagged [interruptions]
17 questions
7
votes
9 answers
Java, replacement for infinite loops?
I am making a program that shows cellular growth through an array. I have gotten it so when I press the start button, the array updates every 10 seconds in a while(true){} loop. The problem with that is I want to be able to stop the loop by pressing…

Luke
- 115
- 1
- 1
- 6
4
votes
1 answer
Handling interruptions during a phone call - the "begin" works but the "end" doesn't
The app records audio and should stop recording audio when there is an interruption, such as a phone call, and then resume recording audio when the phone call ends.
The app currently registers when there is a phone call, but when I hang up the…

Adrienne
- 2,540
- 1
- 29
- 39
2
votes
1 answer
Getting a reference to the current boost::thread/interrupting the main thread
I am trying to get a reference to the main boost::thread of execution, so that I can interrupt it.
However, boost::thread doesn't seem to supply any way of doing this.
I have searched on the internet but I can't seem to find an answer to this…

TomM
- 375
- 3
- 16
2
votes
1 answer
What happens if the page is closed during javascript execution?
Say the user closes the tab corresponding to the current page, at moment t1, at which a script was running:
Will the rest of the