Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpClientOperationScheduler Struct Referencefinal

Optional coordinator for polling many HttpClientOperation instances. More...

#include <HttpClientScheduler.h>

Inheritance diagram for SC::HttpClientOperationScheduler:
SC::HttpClientOperationNotifier

Public Member Functions

Result init (const HttpClientOperationSchedulerMemory &memory)
 
Result close ()
 
Result markReady (HttpClientOperation &operation)
 
Result pollReady (size_t &numPolled, uint32_t waitMilliseconds=0)
 
Result pollAll (size_t &numPolled)
 
size_t getNumReadyOperations () const
 
size_t getNumOperations () const
 
size_t getNumRequestsInFlight () const
 
bool isOperationRegistered (HttpClientOperation &operation) const
 
bool hasRequestsInFlight () const
 
bool isInitialized () const
 

Detailed Description

Optional coordinator for polling many HttpClientOperation instances.

The scheduler installs itself as the operation notifier. It does not own operations, operation memory, or request state, and it does not start requests. It only tracks which operations queued events so callers can avoid blindly polling every operation on each loop iteration.


The documentation for this struct was generated from the following file: