class EE::Network::Http::SharedRequestOperation¶
Overview¶
class SharedRequestOperation: public std::enable_shared_from_this< SharedRequestOperation > { public: // construction SharedRequestOperation(Http& http, std::shared_ptr<AsyncRequest> request, std::weak_ptr<ThreadPool> threadPool); ~SharedRequestOperation(); // methods void run(); void queue(bool first = false); };
Detailed Documentation¶
Construction¶
~SharedRequestOperation()
An executor that discards this operation without running it returns any granted connection to the pool.
Methods¶
void queue(bool first = false)
Waits in the connection pool’s queue, then runs on the executor with its connection.