|
The question still is: why can't you start a thread that calls mainSoundblock(1); when/where the cont.getStartFlag() flag is set?
Why spin in a loop waiting for an event before calling a method, when the event itself could start a thread to call the method?
The setting and testing and reseting of the flag is a great waste of time and code.
|