LegacyWorkerPool

A managed pool of worker threads for handling requests to a server. Uses a separate manager thread to periodically check and adjust the pool.

Note: This worker pool is considered to be deprecated, and won't receive any further updates beyond fixing critical errors.

Members

Functions

size
uint size()

Gets the size of the pool, in terms of the number of worker threads.

start
void start()

Starts the worker pool by spawning new worker threads and a new pool manager thread.

stop
void stop()

Stops the worker pool, by stopping all worker threads and the pool's manager thread. After it's stopped, the pool can be started again via start().

Inherited Members

From RequestWorkerPool

start
void start()

Starts the pool, so that it will be able to process requests.

submit
void submit(HttpServer server, Socket socket)

Submits a client socket to this pool for processing.

stop
void stop()

Stops the pool, so that no more requests may be processed.