Lines Matching refs:Thread
171 // We use a thread in ImageSaver to do the work of saving images and
262 * This Handler is used to post message back onto the main thread of the
787 // yet. The main thread puts the request into the queue. The saver thread
790 // There are several cases the main thread needs to wait for the saver
791 // thread to finish all the work in the queue:
798 // thread until the queue length drops below the threshold (QUEUE_LIMIT).
801 // when we need to wait for saver thread finishing all the work (in
804 private class ImageSaver extends Thread {
812 // Runs in main thread
818 // Runs in main thread
837 notifyAll(); // Tell saver thread there is new work to do.
841 // Runs in saver thread
848 notifyAll(); // notify main thread in waitDone
867 notifyAll(); // the main thread may wait in addImage
872 // Runs in main thread
886 // Runs in main thread
900 // Runs in main thread (because we need to update mThumbnailView in the
901 // main thread)
918 // Runs in saver thread
942 // We need to update the thumbnail in the main thread,
1006 Thread mCameraOpenThread = new Thread(new Runnable() {
1018 Thread mCameraPreviewThread = new Thread(new Runnable() {