CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
ThreadPool.h File Reference
#include "CNum/DataStructs/ConcurrentQueue.h"
#include "CNum/DataStructs/Memory/Arena.h"
#include <functional>
#include <vector>
#include <thread>
#include <mutex>
#include <future>
#include <atomic>

Go to the source code of this file.

Classes

struct  CNum::Multithreading::ThreadPoolConfig
 The configuration of the ThreadPool. More...
class  CNum::Multithreading::ThreadPool
 A promise based thread pool. More...

Namespaces

namespace  CNum::Multithreading
 Structures and algorithms used for multithreaded operations.
namespace  CNum
 The umbrella namespace from which you can access all modules of CNum.

Typedefs

using CNum::Multithreading::Func = std::function< void(arena_t *) >

Variables

constexpr size_t CNum::Multithreading::default_arena_init_block_ct = 16500
 The default amount of blocks allocated to a newly initialized arena.