Open the-moisrex opened 2 months ago
template <Generator GenT, std::size_t PoolSize = 10, Locker LockT = std::conditional_t<PoolSize == 1, noop_locker, unique_lock>> struct generator_pool;
GenT can has its own data-race protection mechanisms like atomic<int>; so the locking system needs to be smarter.
atomic<int>