libkvikio  23.12.00
Classes | Macros
thread_pool.hpp File Reference

A C++17 thread pool for high-performance scientific computing. More...

#include <atomic>
#include <chrono>
#include <cstdint>
#include <functional>
#include <future>
#include <iostream>
#include <memory>
#include <mutex>
#include <queue>
#include <thread>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  kvikio::third_party::thread_pool
 A C++17 thread pool class. The user submits tasks to be executed into a queue. Whenever a thread becomes available, it pops a task from the queue and executes it. Each task is automatically assigned a future, which can be used to wait for the task to finish executing and/or obtain its eventual return value. More...
 

Macros

#define THREAD_POOL_VERSION   "v2.0.0 (2021-08-14)"
 

Detailed Description

A C++17 thread pool for high-performance scientific computing.

Author
Barak Shoshany (barak.nosp@m.sh@g.nosp@m.mail..nosp@m.com) (http://baraksh.com)
Version
2.0.0
Date
2021-08-14

Definition in file thread_pool.hpp.