Re: Force sleep to ignore interrupts

2006-09-14 Thread andychambers2002
Jeremy Sanders wrote: > [EMAIL PROTECTED] wrote: > > > It works as I want when used in the main application thread. > > That is, when you hit Ctr + C, it stops running. However, if > > the class that subclasses it, also subclasses Thread, it breaks > > in that hitting Ctrl + C interrupts the call

Re: Force sleep to ignore interrupts

2006-09-14 Thread Jeremy Sanders
[EMAIL PROTECTED] wrote: > It works as I want when used in the main application thread. > That is, when you hit Ctr + C, it stops running. However, if > the class that subclasses it, also subclasses Thread, it breaks > in that hitting Ctrl + C interrupts the call to sleep which puts > the event l

Force sleep to ignore interrupts

2006-09-14 Thread andychambers2002
I've written a simple Timer class that allows you to extend it and then implement onMinuteChange, onHourChange etc methods which will be executed on each new minute/hour respectively. It works as I want when used in the main application thread. That is, when you hit Ctr + C, it stops running. How