Helps keep track of open evhttp_connection
s with active evhttp_requests
More...
Helps keep track of open evhttp_connection
s with active evhttp_requests
Definition at line 155 of file httpserver.cpp.
◆ AddRequest()
Increase request counter for the associated connection by 1.
Definition at line 173 of file httpserver.cpp.
◆ CountActiveConnections()
size_t HTTPRequestTracker::CountActiveConnections |
( |
| ) |
const |
|
inline |
◆ GUARDED_BY()
For each connection, keep a counter of how many requests are open.
◆ RemoveConnection()
◆ RemoveConnectionInternal()
◆ RemoveRequest()
Decrease request counter for the associated connection by 1, remove connection if counter is 0.
Definition at line 180 of file httpserver.cpp.
◆ WaitUntilEmpty()
void HTTPRequestTracker::WaitUntilEmpty |
( |
| ) |
const |
|
inline |
Wait until there are no more connections with active requests in the tracker.
Definition at line 205 of file httpserver.cpp.
◆ m_cv
std::condition_variable HTTPRequestTracker::m_cv |
|
mutableprivate |
◆ m_mutex
Mutex HTTPRequestTracker::m_mutex |
|
mutableprivate |
The documentation for this class was generated from the following file: