|
GRPC C++
1.0.0
|
A thin wrapper around grpc_alarm (see / / src/core/surface/alarm.h). More...
#include <alarm.h>
Public Member Functions | |
| template<typename T > | |
| Alarm (CompletionQueue *cq, const T &deadline, void *tag) | |
| Create a completion queue alarm instance associated to cq. More... | |
| ~Alarm () | |
| Destroy the given completion queue alarm, cancelling it in the process. More... | |
| void | Cancel () |
| Cancel a completion queue alarm. More... | |
A thin wrapper around grpc_alarm (see / / src/core/surface/alarm.h).
|
inline |
Create a completion queue alarm instance associated to cq.
Once the alarm expires (at deadline) or it's cancelled (see Cancel), an event with tag tag will be added to cq. If the alarm expired, the event's success bit will be true, false otherwise (ie, upon cancellation).
.
|
inline |
Destroy the given completion queue alarm, cancelling it in the process.
|
inline |
Cancel a completion queue alarm.
Calling this function over an alarm that has already fired has no effect.
1.8.11