ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::advanced::scheduled_lightweight_pool Class Referencefinal

#include <scheduled_lightweight_pool.hpp>

Inheritance diagram for threadschedule::advanced::scheduled_lightweight_pool:
[legend]
Collaboration diagram for threadschedule::advanced::scheduled_lightweight_pool:
[legend]

Public Member Functions

 scheduled_lightweight_pool (worker_count count=worker_count::automatic(), worker_registration registration=worker_registration::disabled)
 
auto configure_scheduler (thread_config const &config) -> result< void >
 
auto configure_workers (thread_config const &config) -> result< void >
 
template<typename Rep , typename Period , typename F >
auto schedule_after (std::chrono::duration< Rep, Period > delay, F &&function) -> result< scheduled_task >
 
template<typename F >
auto schedule_at (std::chrono::steady_clock::time_point time, F &&function) -> result< scheduled_task >
 
template<typename Rep , typename Period , typename F >
auto schedule_periodic (std::chrono::duration< Rep, Period > interval, F &&function) -> result< scheduled_task >
 
template<typename InitialRep , typename InitialPeriod , typename IntervalRep , typename IntervalPeriod , typename F >
auto schedule_periodic_after (std::chrono::duration< InitialRep, InitialPeriod > initial_delay, std::chrono::duration< IntervalRep, IntervalPeriod > interval, F &&function) -> result< scheduled_task >
 
auto scheduled_count () const -> std::size_t
 
auto shutdown (shutdown_policy policy=shutdown_policy::drain) -> result< void >
 

Detailed Description

Definition at line 8 of file scheduled_lightweight_pool.hpp.

Constructor & Destructor Documentation

◆ scheduled_lightweight_pool()

threadschedule::advanced::scheduled_lightweight_pool::scheduled_lightweight_pool ( worker_count  count = worker_count::automatic(),
worker_registration  registration = worker_registration::disabled 
)
inlineexplicit

Definition at line 15 of file scheduled_lightweight_pool.hpp.

Member Function Documentation

◆ configure_scheduler()

auto threadschedule::detail::scheduled_pool_facade< Backend >::configure_scheduler ( thread_config const &  config) -> result<void>
inline

Definition at line 131 of file scheduled/facade.hpp.

◆ configure_workers()

auto threadschedule::detail::scheduled_pool_facade< Backend >::configure_workers ( thread_config const &  config) -> result<void>
inline

Definition at line 123 of file scheduled/facade.hpp.

◆ schedule_after()

template<typename Rep , typename Period , typename F >
auto threadschedule::detail::scheduled_pool_facade< Backend >::schedule_after ( std::chrono::duration< Rep, Period >  delay,
F &&  function 
) -> result<scheduled_task>
inline

Definition at line 41 of file scheduled/facade.hpp.

◆ schedule_at()

template<typename F >
auto threadschedule::detail::scheduled_pool_facade< Backend >::schedule_at ( std::chrono::steady_clock::time_point  time,
F &&  function 
) -> result<scheduled_task>
inline

Definition at line 60 of file scheduled/facade.hpp.

◆ schedule_periodic()

template<typename Rep , typename Period , typename F >
auto threadschedule::detail::scheduled_pool_facade< Backend >::schedule_periodic ( std::chrono::duration< Rep, Period >  interval,
F &&  function 
) -> result<scheduled_task>
inline

Definition at line 76 of file scheduled/facade.hpp.

◆ schedule_periodic_after()

template<typename InitialRep , typename InitialPeriod , typename IntervalRep , typename IntervalPeriod , typename F >
auto threadschedule::detail::scheduled_pool_facade< Backend >::schedule_periodic_after ( std::chrono::duration< InitialRep, InitialPeriod >  initial_delay,
std::chrono::duration< IntervalRep, IntervalPeriod >  interval,
F &&  function 
) -> result<scheduled_task>
inline

Definition at line 97 of file scheduled/facade.hpp.

◆ scheduled_count()

auto threadschedule::detail::scheduled_pool_facade< Backend >::scheduled_count ( ) const -> std::size_t
inline

Definition at line 153 of file scheduled/facade.hpp.

◆ shutdown()

auto threadschedule::detail::scheduled_pool_facade< Backend >::shutdown ( shutdown_policy  policy = shutdown_policy::drain) -> result<void>
inline

Definition at line 139 of file scheduled/facade.hpp.


The documentation for this class was generated from the following file: