GitHub Hot Board

GitHub Hot Board · Repository archive

progschj/ThreadPool

A simple C++11 Thread Pool implementation (This description comes from the repository itself.)

Data at October 24progschj

Best

#337

All-time · C++ facet

8.8K

Total stars

2.3K

Total forks

0

Days on boards (30d)

Put your badge on the README · progschj/ThreadPool[![Put your badge on the README](https://git.vaiox.xyz/api/badge/progschj/ThreadPool.svg)](https://git.vaiox.xyz/en/repo/progschj/ThreadPool)

README

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;

Current rankings

Momentum, past 30 days

No leaderboard records in the last 30 days.

← Back to boards