View Single Post
  #5 (permalink)  
Old 09-02-2008, 05:19 AM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
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.
Reply With Quote