Helps keep track of open evhttp_connections with active evhttp_requests
More...
Helps keep track of open evhttp_connections with active evhttp_requests
Definition at line 85 of file httpserver.cpp.
◆ AddRequest()
Increase request counter for the associated connection by 1.
Definition at line 100 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()
| void HTTPRequestTracker::RemoveConnectionInternal |
( |
const decltype(m_tracker)::iterator | it | ) |
|
|
inlineprivate |
◆ RemoveRequest()
Decrease request counter for the associated connection by 1, remove connection if counter is 0.
Definition at line 106 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 127 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: