ThreadSchedule 2.2.0
Modern C++ thread management library
Loading...
Searching...
No Matches
inline_pool.hpp File Reference

InlinePool: deterministic, single-threaded pool for unit testing. More...

#include "expected.hpp"
#include "thread_pool.hpp"
#include <functional>
#include <future>
#include <system_error>
#include <type_traits>
#include <vector>
Include dependency graph for inline_pool.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  threadschedule::InlinePool
 A pool that executes every task inline on the calling thread. More...

Namespaces

namespace  threadschedule

Detailed Description

InlinePool: deterministic, single-threaded pool for unit testing.

Executes every task synchronously on the calling thread. Has the same submit/post/try_submit/try_post API surface as ThreadPool so it can be used as a drop-in template argument in generic code that is parameterized on pool type.

Definition in file inline_pool.hpp.