#include <alarm.h>
Definition at line 35 of file grpcpp/alarm.h.
◆ Alarm() [1/4]
Create an unset completion queue alarm.
Definition at line 138 of file alarm.cc.
◆ ~Alarm()
Destroy the given completion queue alarm, cancelling it in the process.
Definition at line 161 of file alarm.cc.
◆ Alarm() [2/4]
DEPRECATED: Create and set a completion queue alarm instance associated to cq. This form is deprecated because it is inherently racy.
Definition at line 51 of file grpcpp/alarm.h.
◆ Alarm() [3/4]
◆ Alarm() [4/4]
grpc::Alarm::Alarm |
( |
Alarm && |
rhs | ) |
|
|
inlinenoexcept |
◆ Cancel()
void grpc::Alarm::Cancel |
( |
| ) |
|
Cancel a completion queue alarm. Calling this function over an alarm that has already fired has no effect.
Definition at line 167 of file alarm.cc.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Set() [1/2]
Set an alarm to invoke callback f. The argument to the callback states whether the alarm expired at deadline (true) or was cancelled (false)
Definition at line 88 of file grpcpp/alarm.h.
◆ Set() [2/2]
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).
Definition at line 64 of file grpcpp/alarm.h.
◆ SetInternal() [1/2]
◆ SetInternal() [2/2]
◆ alarm_
The documentation for this class was generated from the following files: