Lines Matching defs:thread

32  * background thread.  Tasks may be scheduled for one-time execution, or for
36 * thread that is used to execute all of the timer's tasks, sequentially.
38 * to complete, it "hogs" the timer's task execution thread. This can, in
45 * execution thread terminates gracefully (and becomes subject to garbage
47 * default, the task execution thread does not run as a <i>daemon thread</i>,
49 * wants to terminate a timer's task execution thread rapidly, the caller
52 * <p>If the timer's task execution thread terminates unexpectedly, for
58 * <p>This class is thread-safe: multiple threads can share a single
67 * ScheduledThreadPoolExecutor} which is a thread pool for repeatedly
73 * ScheduledThreadPoolExecutor} with one thread makes it equivalent to
81 * <p>Implementation note: All constructors start a timer thread.
92 * thread. The timer produces tasks, via its various schedule calls,
93 * and the timer thread consumes, executing timer tasks as appropriate,
99 * The timer thread.
101 private final TimerThread thread = new TimerThread(queue);
104 * This object causes the timer's task execution thread to exit
113 thread.newTasksMayBeScheduled = false;
120 * This ID is used to generate thread names.
128 * Creates a new timer. The associated thread does <i>not</i>
136 * Creates a new timer whose associated thread may be specified to
138 * A daemon thread is called for if the timer will be used to
143 * @param isDaemon true if the associated thread should run as a daemon.
150 * Creates a new timer whose associated thread has the specified name.
151 * The associated thread does <i>not</i>
154 * @param name the name of the associated thread
159 thread.setName(name);
160 thread.start();
164 * Creates a new timer whose associated thread has the specified name,
168 * @param name the name of the associated thread
169 * @param isDaemon true if the associated thread should run as a daemon
174 thread.setName(name);
175 thread.setDaemon(isDaemon);
176 thread.start();
187 * cancelled, timer was cancelled, or timer thread terminated.
204 * cancelled, timer was cancelled, or timer thread terminated.
240 * cancelled, timer was cancelled, or timer thread terminated.
281 * cancelled, timer was cancelled, or timer thread terminated.
320 * cancelled, timer was cancelled, or timer thread terminated.
363 * cancelled, timer was cancelled, or timer thread terminated.
383 * cancelled, timer was cancelled, or timer thread terminated.
396 if (!thread.newTasksMayBeScheduled)
417 * Once a timer has been terminated, its execution thread terminates
430 thread.newTasksMayBeScheduled = false;
476 * This "helper class" implements the timer's task execution thread, which
495 * thread would never go away.