/aosp12/art/runtime/ |
H A D | thread_pool.cc | 151 void ThreadPool::RemoveAllTasks(Thread* self) { in RemoveAllTasks() 162 ThreadPool::ThreadPool(const char* name, in ThreadPool() function in art::ThreadPool 182 void ThreadPool::CreateThreads() { in CreateThreads() 199 void ThreadPool::WaitForWorkersToBeCreated() { in WaitForWorkersToBeCreated() 209 void ThreadPool::DeleteThreads() { in DeleteThreads() 231 ThreadPool::~ThreadPool() { in ~ThreadPool() 236 void ThreadPool::StartWorkers(Thread* self) { in StartWorkers() 244 void ThreadPool::StopWorkers(Thread* self) { in StopWorkers() 249 Task* ThreadPool::GetTask(Thread* self) { in GetTask() 281 Task* ThreadPool::TryGetTask(Thread* self) { in TryGetTask() [all …]
|
H A D | thread_pool.h | 30 class ThreadPool; variable 95 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size); 99 ThreadPool* const thread_pool_; 106 friend class ThreadPool; 111 class ThreadPool { 138 ThreadPool(const char* name, 142 virtual ~ThreadPool(); 214 DISALLOW_COPY_AND_ASSIGN(ThreadPool);
|
H A D | thread_pool_test.cc | 64 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 79 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 104 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 127 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() 146 ThreadPool* const thread_pool_; 154 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F() 195 ThreadPool thread_pool("Thread pool test thread pool", 1); in TEST_F() 207 ThreadPool thread_pool("Thread pool test thread pool", 1, true); in TEST_F()
|
H A D | oat_file_manager.h | 43 class ThreadPool; variable 162 std::unique_ptr<ThreadPool> verification_thread_pool_;
|
H A D | barrier_test.cc | 63 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F() 114 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
|
/aosp12/frameworks/wilhelm/src/ |
H A D | ThreadPool.h | 84 } ThreadPool; typedef 86 extern SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads); 87 extern void ThreadPool_deinit(ThreadPool *tp); 88 extern SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind, 91 extern Closure *ThreadPool_remove(ThreadPool *tp); 92 extern SLresult ThreadPool_add_ppi(ThreadPool *tp, ClosureHandler_ppi handler, 94 extern SLresult ThreadPool_add_ppii(ThreadPool *tp, ClosureHandler_ppii handler, 96 extern SLresult ThreadPool_add_piipp(ThreadPool *tp, ClosureHandler_piipp handler,
|
H A D | ThreadPool.cpp | 25 ThreadPool *tp = (ThreadPool *) context; in ThreadPool_start() 81 static void ThreadPool_deinit_internal(ThreadPool *tp, unsigned initialized, unsigned nThreads); 87 SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads) in ThreadPool_init() 90 memset(tp, 0, sizeof(ThreadPool)); in ThreadPool_init() 167 static void ThreadPool_deinit_internal(ThreadPool *tp, unsigned initialized, unsigned nThreads) in ThreadPool_deinit_internal() 242 void ThreadPool_deinit(ThreadPool *tp) in ThreadPool_deinit() 250 SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind, ClosureHandler_generic handler, in ThreadPool_add() 327 Closure *ThreadPool_remove(ThreadPool *tp) in ThreadPool_remove() 371 SLresult ThreadPool_add_ppi(ThreadPool *tp, ClosureHandler_ppi handler, in ThreadPool_add_ppi() 379 SLresult ThreadPool_add_ppii(ThreadPool *tp, ClosureHandler_ppii handler, in ThreadPool_add_ppii() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | BatchService.java | 24 import com.android.gallery3d.util.ThreadPool; 35 private ThreadPool mThreadPool = new ThreadPool(1, 1); 45 public ThreadPool getThreadPool() { in getThreadPool()
|
H A D | GalleryAppImpl.java | 30 import com.android.gallery3d.util.ThreadPool; 43 private ThreadPool mThreadPool; 83 public synchronized ThreadPool getThreadPool() { in getThreadPool() 85 mThreadPool = new ThreadPool(); in getThreadPool()
|
H A D | SlideshowDataAdapter.java | 28 import com.android.gallery3d.util.ThreadPool; 29 import com.android.gallery3d.util.ThreadPool.Job; 30 import com.android.gallery3d.util.ThreadPool.JobContext; 61 private final ThreadPool mThreadPool; 178 jc.setMode(ThreadPool.MODE_NONE); in nextSlide()
|
H A D | GalleryContext.java | 24 import com.android.gallery3d.util.ThreadPool; 33 public ThreadPool getThreadPool(); in getThreadPool()
|
H A D | GalleryApp.java | 27 import com.android.gallery3d.util.ThreadPool; 34 public ThreadPool getThreadPool(); in getThreadPool()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadCache.java | 31 import com.android.gallery3d.util.ThreadPool; 32 import com.android.gallery3d.util.ThreadPool.CancelListener; 33 import com.android.gallery3d.util.ThreadPool.Job; 34 import com.android.gallery3d.util.ThreadPool.JobContext; 317 jc.setMode(ThreadPool.MODE_NETWORK); in run() 323 jc.setMode(ThreadPool.MODE_NETWORK); in run() 325 jc.setMode(ThreadPool.MODE_NONE); in run() 330 jc.setMode(ThreadPool.MODE_NONE); in run()
|
H A D | PanoramaMetadataJob.java | 24 import com.android.gallery3d.util.ThreadPool.Job; 25 import com.android.gallery3d.util.ThreadPool.JobContext;
|
H A D | SnailItem.java | 23 import com.android.gallery3d.util.ThreadPool.Job; 24 import com.android.gallery3d.util.ThreadPool.JobContext;
|
H A D | ActionImage.java | 27 import com.android.gallery3d.util.ThreadPool.Job; 28 import com.android.gallery3d.util.ThreadPool.JobContext;
|
H A D | DownloadUtils.java | 20 import com.android.gallery3d.util.ThreadPool.CancelListener; 21 import com.android.gallery3d.util.ThreadPool.JobContext;
|
H A D | LocalAlbumSet.java | 30 import com.android.gallery3d.util.ThreadPool; 31 import com.android.gallery3d.util.ThreadPool.JobContext; 101 private class AlbumsLoader implements ThreadPool.Job<ArrayList<MediaSet>> {
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | JobLimiter.java | 20 import com.android.gallery3d.util.ThreadPool.Job; 21 import com.android.gallery3d.util.ThreadPool.JobContext; 38 private final ThreadPool mPool; 131 public JobLimiter(ThreadPool pool, int limit) { in JobLimiter()
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver.h | 239 ThreadPool* thread_pool, 259 ThreadPool* thread_pool, 270 ThreadPool* thread_pool, 322 std::unique_ptr<ThreadPool> parallel_thread_pool_; 325 std::unique_ptr<ThreadPool> single_thread_pool_;
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | AlbumLabelMaker.java | 32 import com.android.gallery3d.util.ThreadPool; 33 import com.android.gallery3d.util.ThreadPool.JobContext; 117 public ThreadPool.Job<Bitmap> requestLabel( in requestLabel() 132 private class AlbumLabelJob implements ThreadPool.Job<Bitmap> {
|
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
H A D | ThreadPool.java | 26 public class ThreadPool { class 83 public ThreadPool() { in ThreadPool() method in ThreadPool 87 public ThreadPool(int initPoolSize, int maxPoolSize) { in ThreadPool() method in ThreadPool
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/shims/ |
H A D | BitmapJobDrawable.java | 32 import com.android.gallery3d.util.ThreadPool; 161 private static final ThreadPool sThreadPool = new ThreadPool(0, 2);
|
/aosp12/frameworks/base/media/jni/soundpool/ |
H A D | StreamManager.h | 110 class ThreadPool { 112 ThreadPool(size_t maxThreadCount, std::string name) in ThreadPool() function 116 ~ThreadPool() { quit(); } in ~ThreadPool() 448 std::unique_ptr<ThreadPool> mThreadPool; // locked internally
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 29 import com.android.gallery3d.util.ThreadPool; 49 .run(ThreadPool.JOB_CONTEXT_STUB); in createWidgetBitmap()
|