3D City v-1.0
Computer Graphics Project
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  thread_pool
 A C++17 thread pool class. More...
 
class  synced_stream
 A helper class to synchronize printing to an output stream by different threads. More...
 
class  timer
 A helper class to measure execution time for benchmarking purposes. 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.

Macro Definition Documentation

◆ THREAD_POOL_VERSION

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

Definition at line 15 of file thread_pool.hpp.