Call the functor associated with asynchronous operations when they complete.
Constructors
CompletionQueue()
CompletionQueue(std::shared_ptr< internal::CompletionQueueImpl >)
Parameter | |
---|---|
Name | Description |
impl |
std::shared_ptr< internal::CompletionQueueImpl >
|
Functions
Run()
Run the completion queue event loop.
Note that more than one thread can call this member function, to create a pool of threads completing asynchronous operations.
Returns | |
---|---|
Type | Description |
void |
Shutdown()
Terminate the completion queue event loop.
Returns | |
---|---|
Type | Description |
void |
CancelAll()
Cancel all pending operations.
Returns | |
---|---|
Type | Description |
void |
MakeDeadlineTimer(std::chrono::system_clock::time_point)
Create a timer that fires at deadline
.
Parameter | |
---|---|
Name | Description |
deadline |
std::chrono::system_clock::time_point
when should the timer expire. |
Returns | |
---|---|
Type | D |