Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
concurrency_utils_test.cc File Reference
#include <gtest/gtest.h>
#include <concurrency_utils.H>
#include <thread_pool.H>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <cstring>
#include <future>
#include <memory>
#include <numeric>
#include <random>
#include <stdexcept>
#include <thread>
#include <vector>
Include dependency graph for concurrency_utils_test.cc:

Go to the source code of this file.

Concepts

concept  @820::SupportsValueReturningWithLock
 
concept  @820::SupportsValueReturningWithReadLock
 
concept  @820::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, BoundedChannelNeverMissesTheCancellation)
 
 TEST (ConcurrencyUtils, BoundedChannelCanceledTokenThrowsInsteadOfWaiting)
 
 TEST (ConcurrencyUtils, BoundedChannelCloseWinsIfOperationCanProceed)
 
 TEST (ConcurrencyUtils, BoundedChannelCancellationAppliesToEmplace)
 
 TEST (ConcurrencyUtils, BoundedChannelEmplaceAcceptsCancellationTokenPayloads)
 
 TEST (ConcurrencyUtils, BoundedChannelRecvUsesCopyFallbackForThrowingMoves)
 
 TEST (ConcurrencyUtils, BoundedChannelTryRecvPreservesQueuedValueOnAssignmentFailure)
 
 TEST (ConcurrencyUtils, DefaultValueIsValueInitialized)
 
 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)
 

Function Documentation

◆ TEST() [1/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCanceledTokenThrowsInsteadOfWaiting   
)

◆ TEST() [2/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCancellationAppliesToEmplace   
)

◆ TEST() [3/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCancellationInterruptsBlockedRecv   
)

Definition at line 269 of file concurrency_utils_test.cc.

References Aleph::BoundedChannel< T >::recv().

◆ TEST() [4/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCancellationInterruptsBlockedSend   
)

Definition at line 237 of file concurrency_utils_test.cc.

References Aleph::BoundedChannel< T >::send().

◆ TEST() [5/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCloseDrainsQueuedItems   
)

◆ TEST() [6/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCloseUnblocksSenderAndReceiver   
)

◆ TEST() [7/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelCloseWinsIfOperationCanProceed   
)

◆ TEST() [8/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelEmplaceAcceptsCancellationTokenPayloads   
)

◆ TEST() [9/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelNeverMissesTheCancellation   
)

◆ TEST() [10/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelProducerConsumerPreservesOrder   
)

◆ TEST() [11/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelRecvUsesCopyFallbackForThrowingMoves   
)

◆ TEST() [12/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelSupportsMoveOnlyPayloads   
)

◆ TEST() [13/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelTryRecvPreservesQueuedValueOnAssignmentFailure   
)

◆ TEST() [14/24]

TEST ( ConcurrencyUtils  ,
BoundedChannelTrySendAndTryRecv   
)

◆ TEST() [15/24]

TEST ( ConcurrencyUtils  ,
DefaultValueIsValueInitialized   
)

◆ TEST() [16/24]

TEST ( ConcurrencyUtils  ,
RwSynchronizedSupportsNonDefaultConstructibleValues   
)

◆ TEST() [17/24]

◆ TEST() [18/24]

TEST ( ConcurrencyUtils  ,
SpscQueueBasicPushPop   
)

◆ TEST() [19/24]

TEST ( ConcurrencyUtils  ,
SpscQueueProducerConsumerRoundTrip   
)

Definition at line 609 of file concurrency_utils_test.cc.

References Aleph::SpscQueue< T >::try_push().

◆ TEST() [20/24]

TEST ( ConcurrencyUtils  ,
SpscQueueSupportsMoveOnlyValues   
)

◆ TEST() [21/24]

TEST ( ConcurrencyUtils  ,
SpscQueueTryPopUsesCopyFallbackForThrowingMoves   
)

◆ TEST() [22/24]

TEST ( ConcurrencyUtils  ,
SynchronizedCounterUnderContention   
)

Definition at line 515 of file concurrency_utils_test.cc.

References counter, and Aleph::TaskGroup::launch().

◆ TEST() [23/24]

TEST ( ConcurrencyUtils  ,
SynchronizedSupportsNonDefaultConstructibleValues   
)

◆ TEST() [24/24]

TEST ( ConcurrencyUtils  ,
SynchronizedWithLockAndGuard   
)