GRPC C++
1.13.0-dev
|
A thin wrapper around grpc_alarm (see / / src/core/surface/alarm.h). More...
#include <alarm.h>
Public Member Functions | |
Alarm () | |
Create an unset completion queue alarm. More... | |
~Alarm () | |
Destroy the given completion queue alarm, cancelling it in the process. More... | |
template<typename T > | |
Alarm (CompletionQueue *cq, const T &deadline, void *tag) | |
DEPRECATED: Create and set a completion queue alarm instance associated to cq. More... | |
template<typename T > | |
void | Set (CompletionQueue *cq, const T &deadline, void *tag) |
Trigger an alarm instance on completion queue cq at the specified time. More... | |
Alarm (const Alarm &)=delete | |
Alarms aren't copyable. More... | |
Alarm & | operator= (const Alarm &)=delete |
Alarm (Alarm &&rhs) | |
Alarms are movable. More... | |
Alarm & | operator= (Alarm &&rhs) |
void | Cancel () |
Cancel a completion queue alarm. More... | |
A thin wrapper around grpc_alarm (see / / src/core/surface/alarm.h).
grpc::Alarm::Alarm | ( | ) |
Create an unset completion queue alarm.
grpc::Alarm::~Alarm | ( | ) |
Destroy the given completion queue alarm, cancelling it in the process.
|
inline |
DEPRECATED: Create and set a completion queue alarm instance associated to cq.
This form is deprecated because it is inherently racy.
.
|
delete |
Alarms aren't copyable.
|
inline |
Alarms are movable.
void grpc::Alarm::Cancel | ( | ) |
Cancel a completion queue alarm.
Calling this function over an alarm that has already fired has no effect.
|
inline |
Trigger an alarm instance on completion queue cq at the specified time.
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).