Cancels an operation automatically upon destruction. More...
#include <ndn-cxx/detail/cancel-handle.hpp>
Public Member Functions | |
ScopedCancelHandle () noexcept | |
ScopedCancelHandle (const ScopedCancelHandle &)=delete | |
Copy construction is disallowed. More... | |
ScopedCancelHandle (HandleT hdl) noexcept | |
Implicit constructor from HandleT. 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 64 of file cancel-handle.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Implicit constructor from HandleT.
Definition at line 74 of file cancel-handle.hpp.
|
delete |
Copy construction is disallowed.
|
inlinenoexcept |
Move constructor.
Definition at line 85 of file cancel-handle.hpp.
|
inline |
Cancel the operation.
Definition at line 107 of file cancel-handle.hpp.
|
inline |
Cancel the operation.
Definition at line 115 of file cancel-handle.hpp.
|
inlineexplicitnoexcept |
Definition at line 130 of file cancel-handle.hpp.
|
delete |
Copy assignment is disallowed.
|
inline |
Move assignment operator.
Definition at line 98 of file cancel-handle.hpp.
|
inlinenoexcept |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed.
Definition at line 124 of file cancel-handle.hpp.