Monero
Functions
threadpool.cpp File Reference
#include <atomic>
#include "gtest/gtest.h"
#include "misc_language.h"
#include "common/threadpool.h"
Include dependency graph for threadpool.cpp:

Functions

 TEST (threadpool, wait_nothing)
 
 TEST (threadpool, wait_waits)
 
 TEST (threadpool, one_thread)
 
 TEST (threadpool, many_threads)
 
static uint64_t fibonacci (std::shared_ptr< tools::threadpool > tpool, uint64_t n)
 
 TEST (threadpool, reentrency)
 
 TEST (threadpool, reentrancy)
 
 TEST (threadpool, leaf_throws)
 
 TEST (threadpool, leaf_reentrancy)
 

Function Documentation

◆ fibonacci()

static uint64_t fibonacci ( std::shared_ptr< tools::threadpool tpool,
uint64_t  n 
)
static

◆ TEST() [1/8]

TEST ( threadpool  ,
wait_nothing   
)

◆ TEST() [2/8]

TEST ( threadpool  ,
wait_waits   
)

◆ TEST() [3/8]

TEST ( threadpool  ,
one_thread   
)

◆ TEST() [4/8]

TEST ( threadpool  ,
many_threads   
)

◆ TEST() [5/8]

TEST ( threadpool  ,
reentrency   
)

◆ TEST() [6/8]

TEST ( threadpool  ,
reentrancy   
)

◆ TEST() [7/8]

TEST ( threadpool  ,
leaf_throws   
)

◆ TEST() [8/8]

TEST ( threadpool  ,
leaf_reentrancy   
)