Function getIOLoop

Synopsis

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

virtual trantor::EventLoop * getIOLoop(size_t id) const =0

Description

Get an IO loop with id. E.g. 0 <= id < #Total thread-loops.

Note
The event loop is one of the network IO loops. Use the loop for events/actions rather then the main thread. REMAKRS : Function assumed the number of threads will not exceed 2^32. Change to long long for alien computers.

Source

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






Add Discussion as Guest

Log in to DocsForge