207 |
|
|
208 |
|
/** |
209 |
|
* Creates a new timer whose associated thread may be specified to |
210 |
< |
* run as a daemon. A deamon thread is called for if the timer will |
210 |
> |
* run as a daemon. A daemon thread is called for if the timer will |
211 |
|
* be used to schedule repeating "maintenance activities", which must |
212 |
|
* be performed as long as the application is running, but should not |
213 |
|
* prolong the lifetime of the application. |
464 |
|
} |
465 |
|
|
466 |
|
/** |
467 |
< |
* Schedule the specifed timer task for execution at the specified |
467 |
> |
* Schedule the specified timer task for execution at the specified |
468 |
|
* time with the specified period, in milliseconds. If period is |
469 |
|
* positive, the task is scheduled for repeated execution; if period is |
470 |
|
* zero, the task is scheduled for one-time execution. Time is specified |
587 |
|
try { |
588 |
|
mainLoop(); |
589 |
|
} finally { |
590 |
< |
// Somone killed this Thread, behave as if Timer cancelled |
590 |
> |
// Someone killed this Thread, behave as if Timer cancelled |
591 |
|
synchronized(queue) { |
592 |
|
newTasksMayBeScheduled = false; |
593 |
|
queue.clear(); // Eliminate obsolete references |