Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/art/runtime/
H A Dthread_pool.cc151 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 Dthread_pool.h30 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 Dthread_pool_test.cc64 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 Doat_file_manager.h43 class ThreadPool; variable
162 std::unique_ptr<ThreadPool> verification_thread_pool_;
H A Dbarrier_test.cc63 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 DThreadPool.h84 } 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 DThreadPool.cpp25 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 DBatchService.java24 import com.android.gallery3d.util.ThreadPool;
35 private ThreadPool mThreadPool = new ThreadPool(1, 1);
45 public ThreadPool getThreadPool() { in getThreadPool()
H A DGalleryAppImpl.java30 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 DSlideshowDataAdapter.java28 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 DGalleryContext.java24 import com.android.gallery3d.util.ThreadPool;
33 public ThreadPool getThreadPool(); in getThreadPool()
H A DGalleryApp.java27 import com.android.gallery3d.util.ThreadPool;
34 public ThreadPool getThreadPool(); in getThreadPool()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadCache.java31 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 DPanoramaMetadataJob.java24 import com.android.gallery3d.util.ThreadPool.Job;
25 import com.android.gallery3d.util.ThreadPool.JobContext;
H A DSnailItem.java23 import com.android.gallery3d.util.ThreadPool.Job;
24 import com.android.gallery3d.util.ThreadPool.JobContext;
H A DActionImage.java27 import com.android.gallery3d.util.ThreadPool.Job;
28 import com.android.gallery3d.util.ThreadPool.JobContext;
H A DDownloadUtils.java20 import com.android.gallery3d.util.ThreadPool.CancelListener;
21 import com.android.gallery3d.util.ThreadPool.JobContext;
H A DLocalAlbumSet.java30 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 DJobLimiter.java20 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 Dcompiler_driver.h239 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 DAlbumLabelMaker.java32 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 DThreadPool.java26 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 DBitmapJobDrawable.java32 import com.android.gallery3d.util.ThreadPool;
161 private static final ThreadPool sThreadPool = new ThreadPool(0, 2);
/aosp12/frameworks/base/media/jni/soundpool/
H A DStreamManager.h110 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 DWidgetUtils.java29 import com.android.gallery3d.util.ThreadPool;
49 .run(ThreadPool.JOB_CONTEXT_STUB); in createWidgetBitmap()

123