• Stars
    star
    6
  • Rank 2,539,965 (Top 51 %)
  • Language
    C++
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Work Stealing Thread Pool

wstpool

Work Stealing Thread Pool, Header Only, C++ Threads

  • Consistent with the C++ async/future programming model.
  • Drop-in replacement for 'async' for using the thread pool.
  • Header only--no dependencies. Just copy the header to your project.
  • Work Stealing, multi-queue
#include "wstpool.h"

wstpool::ThreadPool tp(8);

std::future<...> f = tp.async(...);

f.get();

Build instructions for example:

cd example/
cmake .
make