Home | History | Annotate | Download | only in threadsample

Lines Matching defs:thread

49  * thread to change the bitmap to reflect the state.
65 // Sets the amount of time an idle thread will wait for a task before terminating
106 // An object that manages Messages in a Thread
122 * Constructs the work queues and thread pools used to download and decode images.
127 * Creates a work queue for the pool of Thread objects used for downloading, using a linked
133 * Creates a work queue for the pool of Thread objects used for decoding, using a linked
145 * Creates a new pool of Thread objects for the download work queue
151 * Creates a new pool of Thread objects for the decoding work queue
171 * handleMessage() method. The Handler *must* run on the UI thread, because it moves photo
173 * To force the Handler to run on the UI thread, it's defined as part of the PhotoManager
175 * happens when the View invokes startDownload. Since the View runs on the UI Thread, so
207 * if this particular Thread is supposed to be serving the
297 * thread pool
327 * iterates over the array of tasks and interrupts the task's current Thread.
334 // Gets the task's current thread
335 Thread thread = taskArray[taskArrayIndex].mThreadThis;
337 // if the Thread exists, post an interrupt to it
338 if (null != thread) {
339 thread.interrupt();
346 * Stops a download Thread and removes it from the threadpool
348 * @param downloaderTask The download task associated with the Thread
353 // If the Thread object still exists and the download matches the specified URL
361 // Gets the Thread that the downloader task is running on
362 Thread thread = downloaderTask.getCurrentThread();
364 // If the Thread exists, posts an interrupt to it
365 if (null != thread)
366 thread.interrupt();
369 * Removes the download Runnable from the ThreadPool. This opens a Thread in the
411 * Threads are available in the thread pool, the Runnable waits in the queue.