Cancels an operation automatically upon destruction. More...
#include <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 & | operator= (const ScopedCancelHandle &)=delete |
Copy assignment is disallowed. More... | |
ScopedCancelHandle & | operator= (ScopedCancelHandle &&other) |
Move assignment operator. More... | |
~ScopedCancelHandle () | |
Cancel the operation. More... | |
void | cancel () |
Cancel the operation. More... | |
HandleT | release () noexcept |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed. More... | |
operator bool () const noexcept | |
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.
|
delete |
Copy assignment is disallowed.
|
inline |
Move assignment operator.
Definition at line 92 of file cancel-handle.hpp.
|
inline |
Cancel the operation.
Definition at line 109 of file cancel-handle.hpp.
Referenced by nfd::face::UnicastUdpTransport::afterChangePersistency(), nfd::face::UnicastEthernetTransport::afterChangePersistency(), nfd::fw::asf::FaceInfo::cancelTimeout(), nfd::face::WebSocketTransport::doClose(), ndn::Face::Impl::Impl(), ndn::detail::ScopedCancelHandle< PendingInterestHandle >::operator=(), ndn::InMemoryStorageEntry::release(), nfd::face::LpReliability::setOptions(), and ndn::util::NotificationSubscriberBase::stop().
|
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.
|
inlineexplicitnoexcept |
Definition at line 124 of file cancel-handle.hpp.