• Stars
    star
    6
  • Rank 2,458,002 (Top 50 %)
  • Language
    C++
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 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