ThreadPool::Start

Start worker threads.

Synopsis

Declared in <util/threadpool.h>

[[requires_capability(0x7f2e2046a148)]]
void
Start(int num_workers);

Description

Creates and launches num_workers threads that begin executing tasks from the queue. If the pool is already started, throws.

Must be called from a controller (non-worker) thread.

Parameters

NameDescription
num_workersNumber of worker threads to create and launch.