|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <gtest/gtest.h>#include <concurrency_utils.H>#include <thread_pool.H>#include <algorithm>#include <atomic>#include <chrono>#include <future>#include <memory>#include <numeric>#include <stdexcept>#include <thread>#include <vector>Go to the source code of this file.
Concepts | |
| concept | @552::SupportsValueReturningWithLock |
| concept | @552::SupportsValueReturningWithReadLock |
| concept | @552::SupportsValueReturningWithWriteLock |
Functions | |
| TEST (ConcurrencyUtils, BoundedChannelCloseDrainsQueuedItems) | |
| TEST (ConcurrencyUtils, BoundedChannelTrySendAndTryRecv) | |
| TEST (ConcurrencyUtils, BoundedChannelCloseUnblocksSenderAndReceiver) | |
| TEST (ConcurrencyUtils, BoundedChannelProducerConsumerPreservesOrder) | |
| TEST (ConcurrencyUtils, BoundedChannelSupportsMoveOnlyPayloads) | |
| TEST (ConcurrencyUtils, BoundedChannelCancellationInterruptsBlockedSend) | |
| TEST (ConcurrencyUtils, BoundedChannelCancellationInterruptsBlockedRecv) | |
| TEST (ConcurrencyUtils, BoundedChannelCloseWinsIfOperationCanProceed) | |
| TEST (ConcurrencyUtils, BoundedChannelCancellationAppliesToEmplace) | |
| TEST (ConcurrencyUtils, BoundedChannelEmplaceAcceptsCancellationTokenPayloads) | |
| TEST (ConcurrencyUtils, BoundedChannelRecvUsesCopyFallbackForThrowingMoves) | |
| TEST (ConcurrencyUtils, BoundedChannelTryRecvPreservesQueuedValueOnAssignmentFailure) | |
| TEST (ConcurrencyUtils, SynchronizedWithLockAndGuard) | |
| TEST (ConcurrencyUtils, SynchronizedCounterUnderContention) | |
| TEST (ConcurrencyUtils, RwSynchronizedSupportsReadAndWriteAccess) | |
| TEST (ConcurrencyUtils, SynchronizedSupportsNonDefaultConstructibleValues) | |
| TEST (ConcurrencyUtils, RwSynchronizedSupportsNonDefaultConstructibleValues) | |
| TEST (ConcurrencyUtils, SpscQueueBasicPushPop) | |
| TEST (ConcurrencyUtils, SpscQueueProducerConsumerRoundTrip) | |
| TEST (ConcurrencyUtils, SpscQueueSupportsMoveOnlyValues) | |
| TEST (ConcurrencyUtils, SpscQueueTryPopUsesCopyFallbackForThrowingMoves) | |
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCancellationAppliesToEmplace | |||
| ) |
Definition at line 315 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::CancellationSource::request_cancel(), and Aleph::CancellationSource::token().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCancellationInterruptsBlockedRecv | |||
| ) |
Definition at line 267 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::CancellationSource::request_cancel(), and Aleph::CancellationSource::token().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCancellationInterruptsBlockedSend | |||
| ) |
Definition at line 235 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::CancellationSource::request_cancel(), and Aleph::CancellationSource::token().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCloseDrainsQueuedItems | |||
| ) |
Definition at line 125 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCloseUnblocksSenderAndReceiver | |||
| ) |
Definition at line 160 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelCloseWinsIfOperationCanProceed | |||
| ) |
Definition at line 298 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::CancellationSource::request_cancel(), and Aleph::CancellationSource::token().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelEmplaceAcceptsCancellationTokenPayloads | |||
| ) |
Definition at line 347 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::CancellationSource::request_cancel(), and Aleph::CancellationSource::token().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelProducerConsumerPreservesOrder | |||
| ) |
Definition at line 195 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelRecvUsesCopyFallbackForThrowingMoves | |||
| ) |
Definition at line 365 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelSupportsMoveOnlyPayloads | |||
| ) |
Definition at line 223 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelTryRecvPreservesQueuedValueOnAssignmentFailure | |||
| ) |
Definition at line 380 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| BoundedChannelTrySendAndTryRecv | |||
| ) |
Definition at line 145 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| RwSynchronizedSupportsNonDefaultConstructibleValues | |||
| ) |
Definition at line 474 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::RwSynchronized< T, SharedMutex >::with_read_lock(), and Aleph::RwSynchronized< T, SharedMutex >::with_write_lock().
| TEST | ( | ConcurrencyUtils | , |
| RwSynchronizedSupportsReadAndWriteAccess | |||
| ) |
Definition at line 435 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::RwSynchronized< T, SharedMutex >::read(), Aleph::RwSynchronized< T, SharedMutex >::with_read_lock(), Aleph::RwSynchronized< T, SharedMutex >::with_write_lock(), and Aleph::RwSynchronized< T, SharedMutex >::write().
| TEST | ( | ConcurrencyUtils | , |
| SpscQueueBasicPushPop | |||
| ) |
Definition at line 487 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::SpscQueue< T >::empty(), Aleph::SpscQueue< T >::full(), Aleph::SpscQueue< T >::try_pop(), and Aleph::SpscQueue< T >::try_push().
| TEST | ( | ConcurrencyUtils | , |
| SpscQueueProducerConsumerRoundTrip | |||
| ) |
Definition at line 512 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::SpscQueue< T >::try_push().
| TEST | ( | ConcurrencyUtils | , |
| SpscQueueSupportsMoveOnlyValues | |||
| ) |
Definition at line 543 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::SpscQueue< T >::try_pop(), and Aleph::SpscQueue< T >::try_push().
| TEST | ( | ConcurrencyUtils | , |
| SpscQueueTryPopUsesCopyFallbackForThrowingMoves | |||
| ) |
Definition at line 555 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::SpscQueue< T >::try_pop(), and Aleph::SpscQueue< T >::try_push().
| TEST | ( | ConcurrencyUtils | , |
| SynchronizedCounterUnderContention | |||
| ) |
Definition at line 418 of file concurrency_utils_test.cc.
References counter, and Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ConcurrencyUtils | , |
| SynchronizedSupportsNonDefaultConstructibleValues | |||
| ) |
Definition at line 461 of file concurrency_utils_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::Synchronized< T, Mutex >::with_lock().
| TEST | ( | ConcurrencyUtils | , |
| SynchronizedWithLockAndGuard | |||
| ) |
Definition at line 397 of file concurrency_utils_test.cc.
References Aleph::copy(), Aleph::divide_and_conquer_partition_dp(), Aleph::Synchronized< T, Mutex >::lock(), and Aleph::Synchronized< T, Mutex >::with_lock().