Skip to content

WhiteCells/thread_pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++17 Thread Pool

build:

cmake -B build
cmake --build build
./build/thread_pool

usage:

auto &pool = ThreadPool::getInstance();
auto res = pool.addTask([](int num) -> int {
    return num + 10;
}, 20);
std::cout << res.get() << std::endl;

About

C++ thread pool implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published