Tom1 Posted April 1, 2013 Author Posted April 1, 2013 You're stopping the thread from running ever again unless you're restarting it constantly .. lol No I am not? The thread processes at a 600ms tick, that "return" statement doesn't stop the thread from processing.
Blutengel Posted April 2, 2013 Posted April 2, 2013 Really couldn't think of anything else to call itI find this name to be quite descreptive for what it does. Other names such as "CycleScheduler" might give false impressions that it only calls every so often, like a ScheduledExecutorService.
Bythex Posted April 2, 2013 Posted April 2, 2013 No I am not? The thread processes at a 600ms tick, that "return" statement doesn't stop the thread from processing. return stops the whole loop which stops the thread, if you want me to take a picture of me testing this than I could go ahead.
Bot Posted April 2, 2013 Posted April 2, 2013 So this is basically events with an extra integer to tell which cycle it is on. Thanks for your input Thomas however I disagree with what you're passing this as.
Vastico Posted April 2, 2013 Posted April 2, 2013 Err what? http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Phaser.html 2
Guest mainniam Posted April 3, 2013 Posted April 3, 2013 this is already implemented in the standard library. 1