RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
Loading...
Searching...
No Matches
rpnx::querygraph::debug_abi::scheduler Class Reference

Owns a persistent worker pool shared by independently cached graphs. More...

#include <querygraph.hpp>

Classes

struct  options
 Configure the shared worker pool and runnable queue. More...
 

Public Member Functions

 scheduler ()
 Start a worker pool using default scheduling options.
 
 scheduler (options configuration)
 Start a worker pool using the supplied scheduling options.
 
 ~scheduler ()
 Stop and join the worker threads after all graphs are destroyed.
 
 scheduler (scheduler const &)=delete
 Schedulers have stable worker addresses and cannot be copied.
 
scheduler & operator= (scheduler const &)=delete
 Keep each scheduler's worker pool bound to its original owner.
 

Detailed Description

Owns a persistent worker pool shared by independently cached graphs.

Construct the scheduler before its graphs and destroy it after them. Worker threads remain available between requests. The configured thread count bounds execution across all graphs using this scheduler.

Definition at line 2321 of file querygraph.hpp.

Constructor & Destructor Documentation

◆ scheduler()

rpnx::querygraph::debug_abi::scheduler::scheduler ( options configuration)
explicit

Start a worker pool using the supplied scheduling options.

Exceptions
std::invalid_argumentIf either explicit count is zero.

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