Dispatcher¶
-
class dispatcher¶
Running Jobs
-
inline void run()¶
-
inline void stop_running()¶
-
inline void terminate_now()¶
-
inline bool terminating()¶
-
inline void run()¶
-
class job¶
-
struct hf_registry¶
-
class enqueuer¶
Public Functions
-
inline enqueuer(dispatcher &d, runner &r)¶
-
template<internal_event_c event_t>
inline void queue_fire(event_t ev)¶
-
template<template<typename> typename kind_of, network_event_c event_t, network_event_c event2_t>
inline void queue_fire(event_t ev, ev::metadata<kind_of, event2_t> md)¶
-
template<network_event_c event_t, net::tool_c tool_t>
inline void queue_fire(event_t ev, const int s_id, tool_t &t, const net::pipe &p)¶
-
inline enqueuer(dispatcher &d, runner &r)¶
-
struct runner¶
Public Functions
-
inline runner(hf_registry &hfs)¶
-
inline std::size_t next_job_id()¶
-
inline void start_thread(std::size_t spec_hash, std::packaged_task<void(std::stop_token, job)> task, job j)¶
-
inline auto count_threads()¶
-
inline void stop_all_threads()¶
-
inline bool can_exec(int s_id, std::size_t spec_hash)¶
-
template<template<typename> typename kind_of, event_c event_t>
inline void exec(kind_of<event_t> ke)¶
-
inline void remove_pipe(const net::pipe &p)¶
stop all running and remove all pending jobs for pipe p
-
inline void associate_job_to_pipe(const int j_id, const int p_id)¶
-
inline void stop_thread(const int j_id)¶
-
inline runner(hf_registry &hfs)¶
-
struct serialize¶
-
template<typename callable_t>
struct hf_traits¶
-
template<typename mem_fn_t, template<typename> typename kind_of = hf_traits<mem_fn_t>::template kind_type, typename event_t = hf_traits<mem_fn_t>::event_type, typename class_t = hf_traits<mem_fn_t>::class_type>
handler_f<kind_of, event_t> pars::ev::make_hf(mem_fn_t &mem_fn, class_t *self)¶