Warning! The version you're viewing is not the latest. Go to the latest version
#include <lib/inc/drogon/HttpAppFramework.h> virtual HttpAppFramework & setThreadNum(size_t threadNum)=0
Set the number of threads for IO event loops.
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.
- This number is usually less than or equal to the number of CPU cores. This number can be configured in the configuration file.
- Getting Started / A very simple example