Home
last modified time | relevance | path

Searched refs:threadPool (Results 1 – 25 of 26) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java70 private ExecutorService threadPool; field in QueuesTest
74 threadPool = newCachedThreadPool(); in setUp()
79 threadPool.shutdown(); in tearDown()
80 assertTrue("Some worker didn't finish in time", threadPool.awaitTermination(10, SECONDS)); in tearDown()
105 Future<?> possiblyIgnoredError = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
107 Future<?> possiblyIgnoredError1 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
109 Future<?> possiblyIgnoredError2 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
111 Future<?> possiblyIgnoredError3 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
113 Future<?> possiblyIgnoredError4 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
135 Future<?> producerThread = threadPool.submit(producer); in testDrainTimesOut()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DQueuesTest.java70 private ExecutorService threadPool; field in QueuesTest
74 threadPool = newCachedThreadPool(); in setUp()
79 threadPool.shutdown(); in tearDown()
80 assertTrue("Some worker didn't finish in time", threadPool.awaitTermination(10, SECONDS)); in tearDown()
105 Future<?> possiblyIgnoredError = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
107 Future<?> possiblyIgnoredError1 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
109 Future<?> possiblyIgnoredError2 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
111 Future<?> possiblyIgnoredError3 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
113 Future<?> possiblyIgnoredError4 = threadPool.submit(new Producer(q, 20)); in testMultipleProducers()
135 Future<?> producerThread = threadPool.submit(producer); in testDrainTimesOut()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core/
DGrpcEnvironment.cs59 readonly GrpcThreadPool threadPool; field in Grpc.Core.GrpcEnvironment
305threadPool = new GrpcThreadPool(this, GetThreadPoolSizeOrDefault(), GetCompletionQueueCountOrDefau… in GrpcEnvironment()
306 threadPool.Start(); in GrpcEnvironment()
316 return this.threadPool.CompletionQueues;
328 return this.threadPool.IsAlive;
338 … var cqIndex = (int) ((cqPickerCounter.Increment() - 1) % this.threadPool.CompletionQueues.Count); in PickCompletionQueue()
339 return this.threadPool.CompletionQueues.ElementAt(cqIndex); in PickCompletionQueue()
397 await threadPool.StopAsync().ConfigureAwait(false); in ShutdownAsync()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/actors/
DPingPongWithBlockingContext.kt34 private val threadPool = newFixedThreadPoolContext(8, "PongCtx") constant in benchmarks.scheduler.actors.PingPongWithBlockingContext
38 threadPool.close() in tearDown()
50 runPingPongs(experimental, threadPool) in withContextPingPong()
55 runPingPongs(ForkJoinPool.commonPool().asCoroutineDispatcher(), threadPool) in commonPoolWithContextPingPong()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java48 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testModify_basher() local
52 threadPool.submit( in testModify_basher()
114 threadPool.shutdown(); in testModify_basher()
115 assertTrue(threadPool.awaitTermination(300, TimeUnit.SECONDS)); in testModify_basher()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java48 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testModify_basher() local
52 threadPool.submit( in testModify_basher()
114 threadPool.shutdown(); in testModify_basher()
115 assertTrue(threadPool.awaitTermination(300, TimeUnit.SECONDS)); in testModify_basher()
/external/zstd/lib/common/
Dpool.c212 …{ ZSTD_pthread_t* const threadPool = (ZSTD_pthread_t*)ZSTD_customMalloc(numThreads * sizeof(ZSTD… in POOL_resize_internal() local
213 if (!threadPool) return 1; in POOL_resize_internal()
215 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal()
217 ctx->threads = threadPool; in POOL_resize_internal()
221 if (ZSTD_pthread_create(&threadPool[threadId], NULL, &POOL_thread, ctx)) { in POOL_resize_internal()
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestDispatchersTest.kt29 newSingleThreadContext("testSingleThread").use { threadPool -> in <lambda>() method
34 Dispatchers.setMain(threadPool) in <lambda>()
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java499 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_clear_basher() local
505 threadPool.submit( in testRemovalNotification_clear_basher()
596 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_get_basher() local
600 threadPool.submit( in testRemovalNotification_get_basher()
614 threadPool.shutdown(); in testRemovalNotification_get_basher()
615 threadPool.awaitTermination(300, SECONDS); in testRemovalNotification_get_basher()
/external/skia/tests/
DGrContextFactoryTest.cpp89 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST() local
90 contextOptions.fExecutor = threadPool.get(); in DEF_GPUTEST()
/external/skqp/tests/
DGrContextFactoryTest.cpp124 std::unique_ptr<SkExecutor> threadPool = SkExecutor::MakeFIFOThreadPool(1); in DEF_GPUTEST() local
125 contextOptions.fExecutor = threadPool.get(); in DEF_GPUTEST()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java575 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_clear_basher() local
581 threadPool.submit( in testRemovalNotification_clear_basher()
672 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_get_basher() local
676 threadPool.submit( in testRemovalNotification_get_basher()
690 threadPool.shutdown(); in testRemovalNotification_get_basher()
691 threadPool.awaitTermination(300, SECONDS); in testRemovalNotification_get_basher()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java58 private ExecutorService threadPool; field in ConcurrentHashMultisetBenchmark
68 threadPool = in setUp()
99 futures.add(threadPool.submit(task));
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java58 private ExecutorService threadPool; field in ConcurrentHashMultisetBenchmark
68 threadPool = in setUp()
99 futures.add(threadPool.submit(task));
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtilemgr.cpp113 uint32_t numaNode = ((x ^ y) & pContext->threadPool.numaMask); in GetHotTile()
137 uint32_t numaNode = ((x ^ y) & pContext->threadPool.numaMask); in GetHotTile()
346 HANDLE hWorkerPrivateData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in InitializeHotTiles()
Dthreads.cpp841 if (apiThreadId >= pContext->threadPool.numReservedThreads) in BindApiThread()
843 if (pContext->threadPool.numReservedThreads) in BindApiThread()
845 const THREAD_DATA& threadData = pContext->threadPool.pApiThreadData[0]; in BindApiThread()
852 const THREAD_DATA& threadData = pContext->threadPool.pApiThreadData[apiThreadId]; in BindApiThread()
888 uint32_t numaMask = pContext->threadPool.numaMask; in workerThreadMain()
Dbackend.cpp87 pContext->threadPool.pThreadData[workerId].pWorkerPrivateData, in ProcessComputeBE()
120 HANDLE hWorkerPrivateData = pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in ProcessStoreTileBE()
Dapi.cpp150 CreateThreadPool(pContext, &pContext->threadPool); in SwrCreateContext()
185 pContext->threadPool.pThreadData ? pContext->threadPool.pThreadData[i].numaId : 0; in SwrCreateContext()
201 …SWR_WORKER_DATA* pWorkerData = (SWR_WORKER_DATA*)pContext->threadPool.pThreadData[i].pWorkerPrivat… in SwrCreateContext()
226 StartThreadPool(pContext, &pContext->threadPool); in SwrCreateContext()
428 DestroyThreadPool(pContext, &pContext->threadPool); in SwrDestroyContext()
Dfrontend.cpp76 uint32_t numNumaNodes = pContext->threadPool.numaMask + 1; in ProcessShutdown()
78 for (uint32_t i = 0; i < pContext->threadPool.numThreads; ++i) in ProcessShutdown()
514 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in StreamOut()
833 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in GeometryShaderStage()
1269 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in TessellationStages()
1681 void* pWorkerData = pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in ProcessDraw()
Dbackend_clear.cpp161 HANDLE hWorkerPrivateData = pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in ProcessClearBE()
Dcontext.h520 THREAD_POOL threadPool; // Thread pool associated with this context member
Dbackend_singlesample.cpp51 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in BackendSingleSample()
Dbackend_sample.cpp51 void* pWorkerData = pDC->pContext->threadPool.pThreadData[workerId].pWorkerPrivateData; in BackendSampleRate()
Dbackend_impl.h1038 void* pWorkerData = pContext->threadPool.pThreadData[workerId].pWorkerPrivateData;
Drasterizer_impl.h1435 HANDLE hWorkerPrivateData = pContext->threadPool.pThreadData[workerId].pWorkerPrivateData;

12