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

WorkersSet, deprecated: every scheduled item is processed and freed, the wait returns, and a full queue throws. More...

#include <gtest/gtest.h>
#include <atomic>
#include <chrono>
#include <cstdlib>
#include <stdexcept>
#include <thread>
#include <worker_pool.H>
Include dependency graph for worker_pool_test.cc:

Go to the source code of this file.

Functions

 TEST (WorkersSet, ProcessesEveryScheduledItem)
 
 TEST (WorkersSet, TheWaitReturnsWhenTheItemsAreDoneBeforeIt)
 
 TEST (WorkersSet, ItemsScheduledBeforeTheirCountAreProcessed)
 
 TEST (WorkersSet, AnItemThatReturnsTrueEndsTheJob)
 
 TEST (WorkersSet, AFullQueueThrows)
 
 TEST (WorkersSet, AShutdownEndsTheWait)
 

Detailed Description

WorkersSet, deprecated: every scheduled item is processed and freed, the wait returns, and a full queue throws.

Definition in file worker_pool_test.cc.

Function Documentation

◆ TEST() [1/6]

TEST ( WorkersSet  ,
AFullQueueThrows   
)

Definition at line 154 of file worker_pool_test.cc.

◆ TEST() [2/6]

TEST ( WorkersSet  ,
AnItemThatReturnsTrueEndsTheJob   
)

Definition at line 138 of file worker_pool_test.cc.

◆ TEST() [3/6]

TEST ( WorkersSet  ,
AShutdownEndsTheWait   
)

Definition at line 168 of file worker_pool_test.cc.

◆ TEST() [4/6]

TEST ( WorkersSet  ,
ItemsScheduledBeforeTheirCountAreProcessed   
)

Definition at line 122 of file worker_pool_test.cc.

◆ TEST() [5/6]

TEST ( WorkersSet  ,
ProcessesEveryScheduledItem   
)

Definition at line 88 of file worker_pool_test.cc.

◆ TEST() [6/6]

TEST ( WorkersSet  ,
TheWaitReturnsWhenTheItemsAreDoneBeforeIt   
)

Definition at line 106 of file worker_pool_test.cc.

References Aleph::and, and k.