![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <logging.h>#include <util/threadpool.h>#include <test/fuzz/FuzzedDataProvider.h>#include <test/fuzz/fuzz.h>#include <atomic>#include <future>#include <queue>Go to the source code of this file.
Classes | |
| struct | ExpectedException |
| struct | ThrowTask |
| struct | CounterTask |
Functions | |
| static void | GetFuture (std::future< void > &future, uint32_t &fail_counter) |
| static void | StartPoolIfNeeded () EXCLUSIVE_LOCKS_REQUIRED(!g_pool_mutex) |
| static void | setup_threadpool_test () |
| FUZZ_TARGET (threadpool,.init=setup_threadpool_test) EXCLUSIVE_LOCKS_REQUIRED(!g_pool_mutex) | |
Variables | |
| ThreadPool | g_pool {"fuzz"} |
| Mutex | g_pool_mutex |
| size_t | g_num_workers = 3 |
| FUZZ_TARGET | ( | threadpool | , |
| . | init = setup_threadpool_test |
||
| ) |
|
static |
Definition at line 30 of file threadpool.cpp.
|
static |
|
static |
Definition at line 50 of file threadpool.cpp.
| size_t g_num_workers = 3 |
Definition at line 48 of file threadpool.cpp.
| ThreadPool g_pool {"fuzz"} |
Definition at line 45 of file threadpool.cpp.
| Mutex g_pool_mutex |
Definition at line 46 of file threadpool.cpp.