Skip to content

Instantly share code, notes, and snippets.

View YexuanXiao's full-sized avatar
🎯
Focusing

YexuanXiao YexuanXiao

🎯
Focusing
View GitHub Profile
@YexuanXiao
YexuanXiao / thread_pool.hpp
Last active May 22, 2024 15:11
thread pool (incomplete)
#include <algorithm>
#include <vector>
#include <thread>
#include <coroutine>
#include <compare>
#include <semaphore>
#include <atomic>
#include <mutex>
#if !defined(__cpp_size_t_suffix) || __cpp_size_t_suffix < 202011L