Class QueryDispatchQueue¶
-
class
QueryDispatchQueue
¶ QueryDispatchQueue maintains a list of pending queries and dispatches those queries as Executors become available
Public Types
-
using
Task
= std::packaged_task<void(size_t)>¶
Public Functions
-
QueryDispatchQueue
(const size_t parallel_executors_max)¶
Submit a new task to the queue. Blocks until the task begins execution. The caller is expected to maintain a copy of the shared_ptr which will be used to access results once the task runs.
-
bool
hasIdleWorker
()¶
-
~QueryDispatchQueue
()¶
Private Functions
-
void
worker
(const size_t worker_idx)¶
-
using