19 #ifndef MIR_DISPATCH_SIMPLE_DISPATCH_THREAD_H_ 20 #define MIR_DISPATCH_SIMPLE_DISPATCH_THREAD_H_ 27 #include <condition_variable> 43 std::shared_ptr<Dispatchable>
const& dispatchee,
44 std::function<
void()>
const& exception_handler);
50 class ThreadShutdownRequestHandler;
55 std::shared_ptr<ThreadShutdownRequestHandler> thread_exiter;
56 std::shared_ptr<MultiplexingDispatchable> dispatcher;
58 std::mutex thread_pool_mutex;
59 std::vector<std::thread> threadpool;
61 std::function<void()>
const exception_handler;
68 #endif // MIR_DISPATCH_SIMPLE_DISPATCH_THREAD_H_ Definition: as_render_target.h:27
~ThreadedDispatcher() noexcept
Definition: threaded_dispatcher.h:38
ThreadedDispatcher(std::string const &name, std::shared_ptr< Dispatchable > const &dispatchee)
char const * name
Definition: client_types.h:171