|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Thread Pool. More...
#include <gtest/gtest.h>#include <thread_pool.H>#include <atomic>#include <chrono>#include <condition_variable>#include <future>#include <memory>#include <mutex>#include <optional>#include <thread>#include <vector>#include <cmath>#include <numeric>#include <iomanip>#include <algorithm>Go to the source code of this file.
Classes | |
| class | ThreadPoolTest |
| struct | Functor |
| struct | Calculator |
Functions | |
| TEST_F (ThreadPoolTest, DefaultConstruction) | |
| TEST_F (ThreadPoolTest, ConstructionWithSize) | |
| TEST_F (ThreadPoolTest, ConstructionWithZeroDefaultsToOne) | |
| TEST_F (ThreadPoolTest, SimpleTask) | |
| TEST_F (ThreadPoolTest, TaskWithArguments) | |
| TEST_F (ThreadPoolTest, TaskWithReferenceCapture) | |
| TEST_F (ThreadPoolTest, VoidTask) | |
| TEST_F (ThreadPoolTest, MultipleTasks) | |
| TEST_F (ThreadPoolTest, CancellationSourceAndToken) | |
| TEST_F (ThreadPoolTest, CancellationGuardEndsTheNotifications) | |
| TEST_F (ThreadPoolTest, CancellationWhileGuardsComeAndGo) | |
| TEST_F (ThreadPoolTest, ExactCancellationTakesTheRegisteredMutex) | |
| TEST_F (ThreadPoolTest, ExactCancellationWakesAWaiterBetweenCheckAndWait) | |
| TEST_F (ThreadPoolTest, EndingARegistrationDoesNotWaitForAnotherMutex) | |
| TEST_F (ThreadPoolTest, ExactRegistrationsEndOneByOne) | |
| TEST_F (ThreadPoolTest, MovedFromGuardCanBeMovedAgain) | |
| TEST_F (ThreadPoolTest, ExactCancellationWhileGuardsComeAndGo) | |
| TEST_F (ThreadPoolTest, TaskGroupWaitsForAllTasks) | |
| TEST_F (ThreadPoolTest, TaskGroupPropagatesExceptions) | |
| TEST_F (ThreadPoolTest, ParallelForIndexHonorsCancellation) | |
| TEST_F (ThreadPoolTest, ParallelInvokeRunsAllTasks) | |
| TEST_F (ThreadPoolTest, ParallelInvokePropagatesExceptions) | |
| TEST_F (ThreadPoolTest, ParallelInvokeHonorsCancellation) | |
| TEST_F (ThreadPoolTest, PscanMatchesPartialSum) | |
| TEST_F (ThreadPoolTest, PscanAcceptsParallelOptions) | |
| TEST_F (ThreadPoolTest, PexclusiveScanMatchesSequential) | |
| TEST_F (ThreadPoolTest, PscanHonorsCancellation) | |
| TEST_F (ThreadPoolTest, PmergeMatchesStdMerge) | |
| TEST_F (ThreadPoolTest, PmergeAcceptsParallelOptionsAndComparator) | |
| TEST_F (ThreadPoolTest, PmergeHonorsCancellation) | |
| TEST_F (ThreadPoolTest, PscanEmptyInput) | |
| TEST_F (ThreadPoolTest, PscanSingleElement) | |
| TEST_F (ThreadPoolTest, PexclusiveScanEmptyInput) | |
| TEST_F (ThreadPoolTest, PexclusiveScanSingleElement) | |
| TEST_F (ThreadPoolTest, PmergeEmptyLeft) | |
| TEST_F (ThreadPoolTest, PmergeEmptyRight) | |
| TEST_F (ThreadPoolTest, PmergeBothEmpty) | |
| TEST_F (ThreadPoolTest, BenchmarkScanAndMerge) | |
| TEST_F (ThreadPoolTest, PendingTasks) | |
| TEST_F (ThreadPoolTest, IsIdleAfterCompletion) | |
| TEST_F (ThreadPoolTest, ShutdownCompletesAllTasks) | |
| TEST_F (ThreadPoolTest, EnqueueAfterShutdownThrows) | |
| TEST_F (ThreadPoolTest, DoubleShutdownIsSafe) | |
| TEST_F (ThreadPoolTest, ResizeIncrease) | |
| TEST_F (ThreadPoolTest, ResizeDecrease) | |
| TEST_F (ThreadPoolTest, ResizeToSameIsNoOp) | |
| TEST_F (ThreadPoolTest, ResizeAfterShutdownThrows) | |
| TEST_F (ThreadPoolTest, ResizePreservesPendingTasks) | |
| TEST_F (ThreadPoolTest, ExceptionPropagation) | |
| TEST_F (ThreadPoolTest, ExceptionDoesNotAffectOtherTasks) | |
| TEST_F (ThreadPoolTest, ConcurrentEnqueue) | |
| TEST_F (ThreadPoolTest, ParallelExecution) | |
| TEST_F (ThreadPoolTest, RunsAsManyTasksAtOnceAsItHasThreads) | |
| TEST_F (ThreadPoolTest, ManySmallTasks) | |
| TEST_F (ThreadPoolTest, ComputeIntensiveTasks) | |
| TEST_F (ThreadPoolTest, ReturnString) | |
| TEST_F (ThreadPoolTest, ReturnVector) | |
| TEST_F (ThreadPoolTest, ReturnPair) | |
| int | free_function (int x) |
| TEST_F (ThreadPoolTest, FreeFunction) | |
| TEST_F (ThreadPoolTest, FunctorObject) | |
| TEST_F (ThreadPoolTest, StdFunction) | |
| TEST_F (ThreadPoolTest, MemberFunctionPointer) | |
| TEST_F (ThreadPoolTest, ConstMemberFunction) | |
| TEST_F (ThreadPoolTest, StaticMemberFunction) | |
| TEST_F (ThreadPoolTest, MemberFunctionWithReference) | |
| TEST_F (ThreadPoolTest, MoveOnlyLambda) | |
| TEST_F (ThreadPoolTest, MoveOnlyArgument) | |
| TEST_F (ThreadPoolTest, MoveOnlyFunctor) | |
| TEST_F (ThreadPoolTest, EnqueueDetachedBasic) | |
| TEST_F (ThreadPoolTest, EnqueueDetachedWithArgs) | |
| TEST_F (ThreadPoolTest, EnqueueDetachedExceptionsSilent) | |
| TEST_F (ThreadPoolTest, EnqueueDetachedAfterShutdownThrows) | |
| TEST_F (ThreadPoolTest, EnqueueBulkVector) | |
| TEST_F (ThreadPoolTest, EnqueueBulkStrings) | |
| TEST_F (ThreadPoolTest, EnqueueBulkEmpty) | |
| TEST_F (ThreadPoolTest, DefaultPoolExists) | |
| TEST_F (ThreadPoolTest, DefaultPoolWorks) | |
| TEST_F (ThreadPoolTest, DefaultPoolIsSingleton) | |
| void | increment_ref (int &x) |
| void | add_to_ref (int &x, int amount) |
| TEST_F (ThreadPoolTest, ReferenceArgumentWithStdRef) | |
| TEST_F (ThreadPoolTest, ReferenceArgumentMultipleParams) | |
| TEST_F (ThreadPoolTest, ConstReferenceWithStdCref) | |
| TEST_F (ThreadPoolTest, LambdaCaptureByReference) | |
| TEST_F (ThreadPoolTest, MemberFunctionWithStdRef) | |
| TEST_F (ThreadPoolTest, WaitAllBlocks) | |
| TEST_F (ThreadPoolTest, WaitAllOnEmptyPool) | |
| TEST_F (ThreadPoolTest, StressHighVolume) | |
| TEST_F (ThreadPoolTest, StressConcurrentEnqueueFromManyThreads) | |
| TEST_F (ThreadPoolTest, StressMixedWorkloads) | |
| TEST_F (ThreadPoolTest, SingleThreadPool) | |
| TEST_F (ThreadPoolTest, EmptyTasksSequence) | |
| TEST_F (ThreadPoolTest, VeryLargeReturnType) | |
| TEST_F (ThreadPoolTest, TaskReturningTask) | |
| TEST_F (ThreadPoolTest, RecursiveEnqueue) | |
| TEST_F (ThreadPoolTest, TaskThrowingDifferentExceptions) | |
| TEST_F (ThreadPoolTest, AllTasksThrowExceptions) | |
| TEST_F (ThreadPoolTest, ShutdownWhileTasksRunning) | |
| TEST_F (ThreadPoolTest, DestructorWaitsForTasks) | |
| TEST_F (ThreadPoolTest, ResizeUnderLoad) | |
| TEST_F (ThreadPoolTest, DataIntegrityUnderConcurrency) | |
| TEST_F (ThreadPoolTest, AtomicOperationsCorrectness) | |
| TEST_F (ThreadPoolTest, MutexProtectedSharedState) | |
| TEST_F (ThreadPoolTest, ParallelSpeedup) | |
| TEST_F (ThreadPoolTest, LowLatencySmallTasks) | |
| TEST_F (ThreadPoolTest, NestedLambdas) | |
| TEST_F (ThreadPoolTest, StdBindExpression) | |
| TEST_F (ThreadPoolTest, GenericLambda) | |
| TEST_F (ThreadPoolTest, CaptureByMoveInLambda) | |
| TEST_F (ThreadPoolTest, ManyArguments) | |
| TEST_F (ThreadPoolTest, ProducerConsumerPattern) | |
| TEST_F (ThreadPoolTest, SetQueueLimitsBasic) | |
| TEST_F (ThreadPoolTest, SetQueueLimitsDefaultHard) | |
| TEST_F (ThreadPoolTest, EnqueueBoundedBelowSoftLimit) | |
| TEST_F (ThreadPoolTest, EnqueueBoundedBlocksAtSoftLimit) | |
| TEST_F (ThreadPoolTest, EnqueueBoundedThrowsAtHardLimit) | |
| TEST_F (ThreadPoolTest, QueueOverflowErrorContainsInfo) | |
| TEST_F (ThreadPoolTest, EnqueueBoundedDetachedBlocksAtSoftLimit) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueOnStoppedPoolThrows) | |
| TEST_F (ThreadPoolTest, BackpressureSlowsProducer) | |
| TEST_F (ThreadPoolTest, ConcurrentBoundedEnqueue) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueWithFutureResults) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueExceptionPropagation) | |
| TEST_F (ThreadPoolTest, MixedBoundedAndUnboundedEnqueue) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueStressTest) | |
| TEST_F (ThreadPoolTest, UnlimitedByDefault) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueWithArguments) | |
| TEST_F (ThreadPoolTest, BoundedEnqueueWithReference) | |
| TEST_F (ThreadPoolTest, TryEnqueueSucceedsWhenSpaceAvailable) | |
| TEST_F (ThreadPoolTest, TryEnqueueFailsWhenQueueFull) | |
| TEST_F (ThreadPoolTest, TryEnqueueDetachedSucceeds) | |
| TEST_F (ThreadPoolTest, TryEnqueueDetachedFailsWhenFull) | |
| TEST_F (ThreadPoolTest, TryEnqueueOnStoppedPoolThrows) | |
| TEST_F (ThreadPoolTest, TryEnqueueWithArguments) | |
| TEST_F (ThreadPoolTest, TryEnqueueNonBlockingBehavior) | |
| static size_t | usable_cpus () |
| TEST_F (ThreadPoolTest, BenchmarkVsSequential) | |
| TEST_F (ThreadPoolTest, BenchmarkEnqueueOverhead) | |
| TEST_F (ThreadPoolTest, BenchmarkVsStdAsync) | |
| TEST_F (ThreadPoolTest, GetStatsInitialValues) | |
| TEST_F (ThreadPoolTest, StatsTrackCompletedTasks) | |
| TEST_F (ThreadPoolTest, StatsTrackPeakQueueSize) | |
| TEST_F (ThreadPoolTest, ResetStatsWorks) | |
| TEST_F (ThreadPoolTest, ExceptionCallbackInvokedOnDetachedTaskFailure) | |
| TEST_F (ThreadPoolTest, ExceptionCallbackCanBeCleared) | |
| TEST_F (ThreadPoolTest, StatsTrackFailedDetachedTasks) | |
| TEST_F (ThreadPoolTest, WaitAllForSucceedsWhenIdle) | |
| TEST_F (ThreadPoolTest, WaitAllForTimesOutWhenBusy) | |
| TEST_F (ThreadPoolTest, WaitAllUntilWorks) | |
| TEST_F (ThreadPoolTest, EnqueueBatchExecutesAllTasks) | |
| TEST_F (ThreadPoolTest, EnqueueBatchWithLargeWorkload) | |
| TEST_F (ThreadPoolTest, EnqueueBatchEmptyContainer) | |
| TEST_F (ThreadPoolTest, ParallelForModifiesElements) | |
| TEST_F (ThreadPoolTest, ParallelForWithChunkFunction) | |
| TEST_F (ThreadPoolTest, ParallelForEmptyRange) | |
| TEST_F (ThreadPoolTest, ParallelForCustomChunkSize) | |
| TEST_F (ThreadPoolTest, ParallelForIndexWorks) | |
| TEST_F (ThreadPoolTest, ParallelForIndexEmptyRange) | |
| TEST_F (ThreadPoolTest, ParallelTransformBasic) | |
| TEST_F (ThreadPoolTest, ParallelTransformLargeData) | |
| TEST_F (ThreadPoolTest, ParallelTransformEmpty) | |
| TEST_F (ThreadPoolTest, ParallelReduceSum) | |
| TEST_F (ThreadPoolTest, ParallelReduceProduct) | |
| TEST_F (ThreadPoolTest, ParallelReduceMax) | |
| TEST_F (ThreadPoolTest, ParallelReduceLargeData) | |
| TEST_F (ThreadPoolTest, ParallelReduceEmpty) | |
| TEST_F (ThreadPoolTest, ThreadPoolStatsQueueUtilization) | |
| int | main (int argc, char **argv) |
Tests for Thread Pool.
Note: Updated to reflect header Doxygen group changes.
Definition in file thread_pool_test.cc.
| void add_to_ref | ( | int & | x, |
| int | amount | ||
| ) |
Definition at line 1431 of file thread_pool_test.cc.
Referenced by TEST_F().
| int free_function | ( | int | x | ) |
Definition at line 1165 of file thread_pool_test.cc.
Referenced by TEST_F().
| void increment_ref | ( | int & | x | ) |
Definition at line 1430 of file thread_pool_test.cc.
Referenced by TEST_F().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 3185 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| AllTasksThrowExceptions | |||
| ) |
Definition at line 1681 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| AtomicOperationsCorrectness | |||
| ) |
Definition at line 1828 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::sum(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| BackpressureSlowsProducer | |||
| ) |
Definition at line 2246 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| BenchmarkEnqueueOverhead | |||
| ) |
Definition at line 2648 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| BenchmarkScanAndMerge | |||
| ) |
Definition at line 764 of file thread_pool_test.cc.
References LL, Aleph::pmerge(), and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| BenchmarkVsSequential | |||
| ) |
Definition at line 2587 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and usable_cpus().
| TEST_F | ( | ThreadPoolTest | , |
| BenchmarkVsStdAsync | |||
| ) |
Definition at line 2676 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::sum(), and usable_cpus().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueExceptionPropagation | |||
| ) |
Definition at line 2339 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueOnStoppedPoolThrows | |||
| ) |
Definition at line 2236 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueStressTest | |||
| ) |
Definition at line 2381 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueWithArguments | |||
| ) |
Definition at line 2424 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueWithFutureResults | |||
| ) |
Definition at line 2326 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| BoundedEnqueueWithReference | |||
| ) |
Definition at line 2436 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), Aleph::ThreadPool::set_queue_limits(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| CancellationGuardEndsTheNotifications | |||
| ) |
Definition at line 160 of file thread_pool_test.cc.
References Aleph::and.
| TEST_F | ( | ThreadPoolTest | , |
| CancellationSourceAndToken | |||
| ) |
Definition at line 145 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| CancellationWhileGuardsComeAndGo | |||
| ) |
Definition at line 210 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| CaptureByMoveInLambda | |||
| ) |
Definition at line 1981 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| ComputeIntensiveTasks | |||
| ) |
Definition at line 1091 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::is_idle(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ConcurrentBoundedEnqueue | |||
| ) |
Definition at line 2289 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ConcurrentEnqueue | |||
| ) |
Definition at line 974 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ConstMemberFunction | |||
| ) |
Definition at line 1226 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| ConstReferenceWithStdCref | |||
| ) |
Definition at line 1455 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| ConstructionWithSize | |||
| ) |
Definition at line 81 of file thread_pool_test.cc.
References Aleph::ThreadPool::num_threads().
| TEST_F | ( | ThreadPoolTest | , |
| ConstructionWithZeroDefaultsToOne | |||
| ) |
Definition at line 87 of file thread_pool_test.cc.
References Aleph::ThreadPool::num_threads().
| TEST_F | ( | ThreadPoolTest | , |
| DataIntegrityUnderConcurrency | |||
| ) |
Definition at line 1812 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| DefaultConstruction | |||
| ) |
Definition at line 73 of file thread_pool_test.cc.
References Aleph::ThreadPool::is_idle(), Aleph::ThreadPool::is_stopped(), and Aleph::ThreadPool::num_threads().
| TEST_F | ( | ThreadPoolTest | , |
| DefaultPoolExists | |||
| ) |
Definition at line 1403 of file thread_pool_test.cc.
References Aleph::default_pool().
| TEST_F | ( | ThreadPoolTest | , |
| DefaultPoolIsSingleton | |||
| ) |
Definition at line 1418 of file thread_pool_test.cc.
References Aleph::default_pool().
| TEST_F | ( | ThreadPoolTest | , |
| DefaultPoolWorks | |||
| ) |
Definition at line 1411 of file thread_pool_test.cc.
References Aleph::default_pool(), and Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| DestructorWaitsForTasks | |||
| ) |
Definition at line 1744 of file thread_pool_test.cc.
References counter, and Aleph::ThreadPool::enqueue_detached().
| TEST_F | ( | ThreadPoolTest | , |
| DoubleShutdownIsSafe | |||
| ) |
Definition at line 864 of file thread_pool_test.cc.
References Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| EmptyTasksSequence | |||
| ) |
Definition at line 1606 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::is_idle(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EndingARegistrationDoesNotWaitForAnotherMutex | |||
| ) |
Definition at line 333 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueAfterShutdownThrows | |||
| ) |
Definition at line 856 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBatchEmptyContainer | |||
| ) |
Definition at line 2971 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_batch().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBatchExecutesAllTasks | |||
| ) |
Definition at line 2934 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_batch().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBatchWithLargeWorkload | |||
| ) |
Definition at line 2953 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_batch(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBoundedBelowSoftLimit | |||
| ) |
Definition at line 2091 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBoundedBlocksAtSoftLimit | |||
| ) |
Definition at line 2105 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::pending_tasks(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBoundedDetachedBlocksAtSoftLimit | |||
| ) |
Definition at line 2204 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBoundedThrowsAtHardLimit | |||
| ) |
Definition at line 2148 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bounded(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBulkEmpty | |||
| ) |
Definition at line 1389 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bulk().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBulkStrings | |||
| ) |
Definition at line 1374 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bulk().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueBulkVector | |||
| ) |
Definition at line 1359 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_bulk().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueDetachedAfterShutdownThrows | |||
| ) |
Definition at line 1347 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueDetachedBasic | |||
| ) |
Definition at line 1307 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueDetachedExceptionsSilent | |||
| ) |
Definition at line 1333 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| EnqueueDetachedWithArgs | |||
| ) |
Definition at line 1320 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::sum(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ExactCancellationTakesTheRegisteredMutex | |||
| ) |
Definition at line 274 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| ExactCancellationWakesAWaiterBetweenCheckAndWait | |||
| ) |
Definition at line 306 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| ExactCancellationWhileGuardsComeAndGo | |||
| ) |
Definition at line 423 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| ExactRegistrationsEndOneByOne | |||
| ) |
Definition at line 366 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| ExceptionCallbackCanBeCleared | |||
| ) |
Definition at line 2847 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_exception_callback(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ExceptionCallbackInvokedOnDetachedTaskFailure | |||
| ) |
Definition at line 2818 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_exception_callback(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ExceptionDoesNotAffectOtherTasks | |||
| ) |
Definition at line 955 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| ExceptionPropagation | |||
| ) |
Definition at line 943 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| FreeFunction | |||
| ) |
Definition at line 1173 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and free_function().
| TEST_F | ( | ThreadPoolTest | , |
| FunctorObject | |||
| ) |
Definition at line 1182 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| GenericLambda | |||
| ) |
Definition at line 1967 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| GetStatsInitialValues | |||
| ) |
Definition at line 2744 of file thread_pool_test.cc.
References Aleph::ThreadPool::get_stats().
| TEST_F | ( | ThreadPoolTest | , |
| IsIdleAfterCompletion | |||
| ) |
Definition at line 824 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::is_idle(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| LambdaCaptureByReference | |||
| ) |
Definition at line 1465 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| LowLatencySmallTasks | |||
| ) |
Definition at line 1906 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ManyArguments | |||
| ) |
Definition at line 1998 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and h.
| TEST_F | ( | ThreadPoolTest | , |
| ManySmallTasks | |||
| ) |
Definition at line 1063 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| MemberFunctionPointer | |||
| ) |
Definition at line 1215 of file thread_pool_test.cc.
References Calculator::add(), Aleph::ThreadPool::enqueue(), and Calculator::value.
| TEST_F | ( | ThreadPoolTest | , |
| MemberFunctionWithReference | |||
| ) |
Definition at line 1245 of file thread_pool_test.cc.
References Calculator::add(), Aleph::ThreadPool::enqueue(), and Calculator::value.
| TEST_F | ( | ThreadPoolTest | , |
| MemberFunctionWithStdRef | |||
| ) |
Definition at line 1476 of file thread_pool_test.cc.
References Calculator::add(), Aleph::ThreadPool::enqueue(), and Calculator::value.
| TEST_F | ( | ThreadPoolTest | , |
| MixedBoundedAndUnboundedEnqueue | |||
| ) |
Definition at line 2351 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_bounded_detached(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| MovedFromGuardCanBeMovedAgain | |||
| ) |
Definition at line 397 of file thread_pool_test.cc.
| TEST_F | ( | ThreadPoolTest | , |
| MoveOnlyArgument | |||
| ) |
Definition at line 1271 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| MoveOnlyFunctor | |||
| ) |
Definition at line 1282 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| MoveOnlyLambda | |||
| ) |
Definition at line 1261 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| MultipleTasks | |||
| ) |
Definition at line 132 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| MutexProtectedSharedState | |||
| ) |
Definition at line 1844 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| NestedLambdas | |||
| ) |
Definition at line 1937 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and y.
| TEST_F | ( | ThreadPoolTest | , |
| ParallelExecution | |||
| ) |
Definition at line 998 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForCustomChunkSize | |||
| ) |
Definition at line 3023 of file thread_pool_test.cc.
References Aleph::parallel_for().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForEmptyRange | |||
| ) |
Definition at line 3011 of file thread_pool_test.cc.
References Aleph::parallel_for().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForIndexEmptyRange | |||
| ) |
Definition at line 3055 of file thread_pool_test.cc.
References Aleph::parallel_for_index().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForIndexHonorsCancellation | |||
| ) |
Definition at line 494 of file thread_pool_test.cc.
References options, Aleph::parallel_for_index(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForIndexWorks | |||
| ) |
Definition at line 3041 of file thread_pool_test.cc.
References Aleph::parallel_for_index().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForModifiesElements | |||
| ) |
Definition at line 2983 of file thread_pool_test.cc.
References Aleph::parallel_for().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelForWithChunkFunction | |||
| ) |
Definition at line 2995 of file thread_pool_test.cc.
References Aleph::parallel_for().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelInvokeHonorsCancellation | |||
| ) |
Definition at line 542 of file thread_pool_test.cc.
References options, Aleph::parallel_invoke(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| ParallelInvokePropagatesExceptions | |||
| ) |
Definition at line 529 of file thread_pool_test.cc.
References Aleph::completed(), and Aleph::parallel_invoke().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelInvokeRunsAllTasks | |||
| ) |
Definition at line 516 of file thread_pool_test.cc.
References Aleph::parallel_invoke(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelReduceEmpty | |||
| ) |
Definition at line 3160 of file thread_pool_test.cc.
References Aleph::parallel_reduce().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelReduceLargeData | |||
| ) |
Definition at line 3146 of file thread_pool_test.cc.
References LL, Aleph::parallel_reduce(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelReduceMax | |||
| ) |
Definition at line 3133 of file thread_pool_test.cc.
References Aleph::parallel_reduce().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelReduceProduct | |||
| ) |
Definition at line 3121 of file thread_pool_test.cc.
References Aleph::parallel_reduce(), and Aleph::product().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelReduceSum | |||
| ) |
Definition at line 3110 of file thread_pool_test.cc.
References Aleph::parallel_reduce(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelSpeedup | |||
| ) |
Definition at line 1873 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelTransformBasic | |||
| ) |
Definition at line 3066 of file thread_pool_test.cc.
References output, and Aleph::parallel_transform().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelTransformEmpty | |||
| ) |
Definition at line 3095 of file thread_pool_test.cc.
References output, and Aleph::parallel_transform().
| TEST_F | ( | ThreadPoolTest | , |
| ParallelTransformLargeData | |||
| ) |
Definition at line 3079 of file thread_pool_test.cc.
References output, and Aleph::parallel_transform().
| TEST_F | ( | ThreadPoolTest | , |
| PendingTasks | |||
| ) |
Definition at line 802 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::pending_tasks(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| PexclusiveScanEmptyInput | |||
| ) |
Definition at line 690 of file thread_pool_test.cc.
References options, output, Aleph::pexclusive_scan(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PexclusiveScanMatchesSequential | |||
| ) |
Definition at line 584 of file thread_pool_test.cc.
References output, and Aleph::pexclusive_scan().
| TEST_F | ( | ThreadPoolTest | , |
| PexclusiveScanSingleElement | |||
| ) |
Definition at line 703 of file thread_pool_test.cc.
References options, output, Aleph::pexclusive_scan(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeAcceptsParallelOptionsAndComparator | |||
| ) |
Definition at line 624 of file thread_pool_test.cc.
References options, Aleph::pmerge(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeBothEmpty | |||
| ) |
Definition at line 750 of file thread_pool_test.cc.
References options, Aleph::pmerge(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeEmptyLeft | |||
| ) |
Definition at line 718 of file thread_pool_test.cc.
References options, Aleph::pmerge(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeEmptyRight | |||
| ) |
Definition at line 734 of file thread_pool_test.cc.
References options, Aleph::pmerge(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeHonorsCancellation | |||
| ) |
Definition at line 640 of file thread_pool_test.cc.
References options, Aleph::pmerge(), and Aleph::ParallelOptions::pool.
| TEST_F | ( | ThreadPoolTest | , |
| PmergeMatchesStdMerge | |||
| ) |
Definition at line 611 of file thread_pool_test.cc.
References Aleph::pmerge().
| TEST_F | ( | ThreadPoolTest | , |
| ProducerConsumerPattern | |||
| ) |
Definition at line 2016 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| PscanAcceptsParallelOptions | |||
| ) |
Definition at line 571 of file thread_pool_test.cc.
References options, output, Aleph::ParallelOptions::pool, and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| PscanEmptyInput | |||
| ) |
Definition at line 662 of file thread_pool_test.cc.
References options, output, Aleph::ParallelOptions::pool, and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| PscanHonorsCancellation | |||
| ) |
Definition at line 594 of file thread_pool_test.cc.
References options, output, Aleph::ParallelOptions::pool, and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| PscanMatchesPartialSum | |||
| ) |
Definition at line 557 of file thread_pool_test.cc.
References output, and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| PscanSingleElement | |||
| ) |
Definition at line 675 of file thread_pool_test.cc.
References options, output, Aleph::ParallelOptions::pool, and Aleph::pscan().
| TEST_F | ( | ThreadPoolTest | , |
| QueueOverflowErrorContainsInfo | |||
| ) |
Definition at line 2173 of file thread_pool_test.cc.
References Aleph::queue_overflow_error::current_size(), Aleph::ThreadPool::enqueue_bounded(), Aleph::ThreadPool::enqueue_detached(), FAIL, Aleph::queue_overflow_error::hard_limit(), Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| RecursiveEnqueue | |||
| ) |
Definition at line 1646 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ReferenceArgumentMultipleParams | |||
| ) |
Definition at line 1444 of file thread_pool_test.cc.
References add_to_ref(), Aleph::ThreadPool::enqueue(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| ReferenceArgumentWithStdRef | |||
| ) |
Definition at line 1433 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), increment_ref(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| ResetStatsWorks | |||
| ) |
Definition at line 2798 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::get_stats(), Aleph::ThreadPool::reset_stats(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ResizeAfterShutdownThrows | |||
| ) |
Definition at line 908 of file thread_pool_test.cc.
References Aleph::ThreadPool::resize(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| ResizeDecrease | |||
| ) |
Definition at line 888 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::num_threads(), and Aleph::ThreadPool::resize().
| TEST_F | ( | ThreadPoolTest | , |
| ResizeIncrease | |||
| ) |
Definition at line 875 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::num_threads(), and Aleph::ThreadPool::resize().
| TEST_F | ( | ThreadPoolTest | , |
| ResizePreservesPendingTasks | |||
| ) |
Definition at line 916 of file thread_pool_test.cc.
References Aleph::completed(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::resize(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ResizeToSameIsNoOp | |||
| ) |
Definition at line 901 of file thread_pool_test.cc.
References Aleph::ThreadPool::num_threads(), and Aleph::ThreadPool::resize().
| TEST_F | ( | ThreadPoolTest | , |
| ResizeUnderLoad | |||
| ) |
Definition at line 1763 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::resize(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| ReturnPair | |||
| ) |
Definition at line 1148 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::product(), and Aleph::sum().
| TEST_F | ( | ThreadPoolTest | , |
| ReturnString | |||
| ) |
Definition at line 1126 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| ReturnVector | |||
| ) |
Definition at line 1135 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| RunsAsManyTasksAtOnceAsItHasThreads | |||
| ) |
Definition at line 1033 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and m.
| TEST_F | ( | ThreadPoolTest | , |
| SetQueueLimitsBasic | |||
| ) |
Definition at line 2069 of file thread_pool_test.cc.
References Aleph::ThreadPool::get_queue_limits(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| SetQueueLimitsDefaultHard | |||
| ) |
Definition at line 2080 of file thread_pool_test.cc.
References Aleph::ThreadPool::get_queue_limits(), and Aleph::ThreadPool::set_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| ShutdownCompletesAllTasks | |||
| ) |
Definition at line 842 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::is_stopped(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| ShutdownWhileTasksRunning | |||
| ) |
Definition at line 1713 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::shutdown().
| TEST_F | ( | ThreadPoolTest | , |
| SimpleTask | |||
| ) |
Definition at line 93 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| SingleThreadPool | |||
| ) |
Definition at line 1586 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StaticMemberFunction | |||
| ) |
Definition at line 1236 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| StatsTrackCompletedTasks | |||
| ) |
Definition at line 2758 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::get_stats(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StatsTrackFailedDetachedTasks | |||
| ) |
Definition at line 2874 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::get_stats(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StatsTrackPeakQueueSize | |||
| ) |
Definition at line 2776 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::get_stats(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StdBindExpression | |||
| ) |
Definition at line 1955 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| StdFunction | |||
| ) |
Definition at line 1192 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| StressConcurrentEnqueueFromManyThreads | |||
| ) |
Definition at line 1536 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StressHighVolume | |||
| ) |
Definition at line 1522 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| StressMixedWorkloads | |||
| ) |
Definition at line 1560 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| TaskGroupPropagatesExceptions | |||
| ) |
Definition at line 473 of file thread_pool_test.cc.
References Aleph::completed(), Aleph::TaskGroup::is_empty(), Aleph::TaskGroup::launch(), and Aleph::TaskGroup::wait().
| TEST_F | ( | ThreadPoolTest | , |
| TaskGroupWaitsForAllTasks | |||
| ) |
Definition at line 458 of file thread_pool_test.cc.
References Aleph::TaskGroup::is_empty(), Aleph::TaskGroup::launch(), Aleph::TaskGroup::size(), Aleph::sum(), and Aleph::TaskGroup::wait().
| TEST_F | ( | ThreadPoolTest | , |
| TaskReturningTask | |||
| ) |
Definition at line 1633 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| TaskThrowingDifferentExceptions | |||
| ) |
Definition at line 1666 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| TaskWithArguments | |||
| ) |
Definition at line 102 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| TaskWithReferenceCapture | |||
| ) |
Definition at line 111 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and value.
| TEST_F | ( | ThreadPoolTest | , |
| ThreadPoolStatsQueueUtilization | |||
| ) |
Definition at line 3174 of file thread_pool_test.cc.
References Aleph::ThreadPoolStats::current_queue_size, and Aleph::ThreadPoolStats::queue_utilization().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueDetachedFailsWhenFull | |||
| ) |
Definition at line 2500 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), Aleph::ThreadPool::try_enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueDetachedSucceeds | |||
| ) |
Definition at line 2487 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::set_queue_limits(), Aleph::ThreadPool::try_enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueFailsWhenQueueFull | |||
| ) |
Definition at line 2464 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), Aleph::ThreadPool::try_enqueue(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueNonBlockingBehavior | |||
| ) |
Definition at line 2543 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::set_queue_limits(), Aleph::ThreadPool::try_enqueue(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueOnStoppedPoolThrows | |||
| ) |
Definition at line 2523 of file thread_pool_test.cc.
References Aleph::ThreadPool::shutdown(), Aleph::ThreadPool::try_enqueue(), and Aleph::ThreadPool::try_enqueue_detached().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueSucceedsWhenSpaceAvailable | |||
| ) |
Definition at line 2453 of file thread_pool_test.cc.
References Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::try_enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| TryEnqueueWithArguments | |||
| ) |
Definition at line 2532 of file thread_pool_test.cc.
References Aleph::ThreadPool::set_queue_limits(), and Aleph::ThreadPool::try_enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| UnlimitedByDefault | |||
| ) |
Definition at line 2414 of file thread_pool_test.cc.
References Aleph::ThreadPool::get_queue_limits().
| TEST_F | ( | ThreadPoolTest | , |
| VeryLargeReturnType | |||
| ) |
Definition at line 1618 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| VoidTask | |||
| ) |
Definition at line 121 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue().
| TEST_F | ( | ThreadPoolTest | , |
| WaitAllBlocks | |||
| ) |
Definition at line 1491 of file thread_pool_test.cc.
References counter, Aleph::ThreadPool::enqueue_detached(), and Aleph::ThreadPool::wait_all().
| TEST_F | ( | ThreadPoolTest | , |
| WaitAllForSucceedsWhenIdle | |||
| ) |
Definition at line 2893 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and Aleph::ThreadPool::wait_all_for().
| TEST_F | ( | ThreadPoolTest | , |
| WaitAllForTimesOutWhenBusy | |||
| ) |
Definition at line 2903 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue_detached(), Aleph::ThreadPool::wait_all(), and Aleph::ThreadPool::wait_all_for().
| TEST_F | ( | ThreadPoolTest | , |
| WaitAllOnEmptyPool | |||
| ) |
Definition at line 1507 of file thread_pool_test.cc.
References Aleph::ThreadPool::wait_all(), and Aleph::ThreadPool::wait_all_for().
| TEST_F | ( | ThreadPoolTest | , |
| WaitAllUntilWorks | |||
| ) |
Definition at line 2921 of file thread_pool_test.cc.
References Aleph::ThreadPool::enqueue(), and Aleph::ThreadPool::wait_all_until().
|
static |
Definition at line 2577 of file thread_pool_test.cc.