(I think this is a remnant from when I refactored the Alarm class.)
There are some calls to:
alarm = Alarm.schedule(timeout, TimeUnit.SECONDS, alarmOut, Thread.currentThread());
which should really be:
alarm = Alarm.schedulePeriodicInterrupt(timeout, TimeUnit.SECONDS, alarmOut, Thread.currentThread());
The first call will actually send Thread.currentThread() as a Runnable to the Alarm to be executed when the Alarm triggers. I'm guessing this can lead to some very interesting scenarios...
There are some calls to:
alarm = Alarm.schedule(timeout, TimeUnit.SECONDS, alarmOut, Thread.currentThread());
which should really be:
alarm = Alarm.schedulePeriodicInterrupt(timeout, TimeUnit.SECONDS, alarmOut, Thread.currentThread());
The first call will actually send Thread.currentThread() as a Runnable to the Alarm to be executed when the Alarm triggers. I'm guessing this can lead to some very interesting scenarios...