Skip to content

A simple C++11 Thread Pool implementation

License

Notifications You must be signed in to change notification settings

13579xxl/ThreadPool

This branch is 1 commit ahead of progschj/ThreadPool:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2781163 · Oct 16, 2023

History

29 Commits
Sep 26, 2014
May 22, 2013
Oct 16, 2023
Sep 25, 2014

Repository files navigation

ThreadPool

A simple C++11 Thread Pool implementation.

Basic usage:

// create thread pool with 4 worker threads
ThreadPool pool(4);

// enqueue and store future
auto result = pool.enqueue([](int answer) { return answer; }, 42);

// get result from future
std::cout << result.get() << std::endl;

About

A simple C++11 Thread Pool implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%