Cancels an operation automatically upon destruction. More...
#include <ndn-cxx/detail/cancel-handle.hpp>
Public Member Functions | |
ScopedCancelHandle () noexcept | |
ScopedCancelHandle (HandleT hdl) noexcept | |
Implicit constructor from HandleT. More... | |
ScopedCancelHandle (const ScopedCancelHandle &)=delete | |
Copy construction is disallowed. More... | |
ScopedCancelHandle (ScopedCancelHandle &&other) noexcept | |
Move constructor. More... | |
~ScopedCancelHandle () | |
Cancel the operation. More... | |
void | cancel () |
Cancel the operation. More... | |
operator bool () const noexcept | |
ScopedCancelHandle & | operator= (const ScopedCancelHandle &)=delete |
Copy assignment is disallowed. More... | |
ScopedCancelHandle & | operator= (ScopedCancelHandle &&other) |
Move assignment operator. More... | |
HandleT | release () noexcept |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed. More... | |
Cancels an operation automatically upon destruction.
Definition at line 58 of file cancel-handle.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Implicit constructor from HandleT.
Definition at line 68 of file cancel-handle.hpp.
|
delete |
Copy construction is disallowed.
|
inlinenoexcept |
Move constructor.
Definition at line 79 of file cancel-handle.hpp.
|
inline |
Cancel the operation.
Definition at line 101 of file cancel-handle.hpp.
|
inline |
Cancel the operation.
Definition at line 109 of file cancel-handle.hpp.
|
inlineexplicitnoexcept |
Definition at line 124 of file cancel-handle.hpp.
|
delete |
Copy assignment is disallowed.
|
inline |
Move assignment operator.
Definition at line 92 of file cancel-handle.hpp.
|
inlinenoexcept |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed.
Definition at line 118 of file cancel-handle.hpp.