Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
q_consumer_threads_test.cc File Reference

QueueTheadsPool, deprecated: its threads consume the queue, its destructor shuts it down, and an event owned by another thread starts no thread. More...

#include <gtest/gtest.h>
#include <atomic>
#include <chrono>
#include <stdexcept>
#include <thread>
#include <q-consumer-threads.H>
Include dependency graph for q_consumer_threads_test.cc:

Go to the source code of this file.

Functions

 TEST (QueueTheadsPool, ItsThreadsConsumeEveryItem)
 
 TEST (QueueTheadsPool, TheDestructorShutsThePoolDown)
 
 TEST (QueueTheadsPool, AnEventOfAnotherThreadStartsNoThread)
 
 TEST (QueueTheadsPool, PutWithoutThreadsFails)
 
 TEST (QueueTheadsPool, ASuspendedPoolShutsDown)
 
 TEST (QueueTheadsPool, AnEventShutsItsPoolDown)
 
 TEST (ConsumerQueueEvent, ItsRunIsVirtual)
 

Detailed Description

QueueTheadsPool, deprecated: its threads consume the queue, its destructor shuts it down, and an event owned by another thread starts no thread.

Definition in file q_consumer_threads_test.cc.

Function Documentation

◆ TEST() [1/7]

TEST ( ConsumerQueueEvent  ,
ItsRunIsVirtual   
)

Definition at line 216 of file q_consumer_threads_test.cc.

References ConsumerQueueEvent< T >::run().

◆ TEST() [2/7]

TEST ( QueueTheadsPool  ,
AnEventOfAnotherThreadStartsNoThread   
)

Definition at line 109 of file q_consumer_threads_test.cc.

References Aleph::sum().

◆ TEST() [3/7]

TEST ( QueueTheadsPool  ,
AnEventShutsItsPoolDown   
)

Definition at line 163 of file q_consumer_threads_test.cc.

References Aleph::and, and k.

◆ TEST() [4/7]

TEST ( QueueTheadsPool  ,
ASuspendedPoolShutsDown   
)

Definition at line 134 of file q_consumer_threads_test.cc.

References Aleph::sum().

◆ TEST() [5/7]

TEST ( QueueTheadsPool  ,
ItsThreadsConsumeEveryItem   
)

Definition at line 76 of file q_consumer_threads_test.cc.

References Aleph::sum().

◆ TEST() [6/7]

TEST ( QueueTheadsPool  ,
PutWithoutThreadsFails   
)

Definition at line 128 of file q_consumer_threads_test.cc.

◆ TEST() [7/7]

TEST ( QueueTheadsPool  ,
TheDestructorShutsThePoolDown   
)

Definition at line 93 of file q_consumer_threads_test.cc.

References Aleph::sum().