|
RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
|
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. | |
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.
|
explicit |
Start a worker pool using the supplied scheduling options.
| std::invalid_argument | If either explicit count is zero. |