Function setThreadNum

Synopsis

#include <lib/inc/drogon/HttpAppFramework.h>

virtual HttpAppFramework & setThreadNum(size_t threadNum)=0

Description

Set the number of threads for IO event loops.

Parameters:

threadNum - the number of threads The default value is 1, if the parameter is 0, the number is equal to the number of CPU cores.

Note
This number is usually less than or equal to the number of CPU cores. This number can be configured in the configuration file.

Mentioned in

Source

Line 615 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge