Class CompletionQueue (2.20.0-rc)

Call the functor associated with asynchronous operations when they complete.

Constructors

CompletionQueue()

CompletionQueue(std::shared_ptr< internal::CompletionQueueImpl >)

Parameter
NameDescription
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
TypeDescription
void

Shutdown()

Terminate the completion queue event loop.

Returns
TypeDescription
void

CancelAll()

Cancel all pending operations.

Returns
TypeDescription
void

MakeDeadlineTimer(std::chrono::system_clock::time_point)

Create a timer that fires at deadline.

Parameter
NameDescription
deadline std::chrono::system_clock::time_point

when should the timer expire.

Returns
TypeD