Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/io/Disposer.hpp>
Public Member Functions | |
BasicDisposer () noexcept=default | |
BasicDisposer (const BasicDisposer &)=delete | |
BasicDisposer & | operator= (const BasicDisposer &)=delete |
BasicDisposer (BasicDisposer &&)=delete | |
BasicDisposer & | operator= (BasicDisposer &&)=delete |
void | dispose (CyclTime now) noexcept |
The dispose method may be safely called from callback functions while a lock is held. | |
Protected Member Functions | |
~BasicDisposer ()=default | |
bool | is_locked () const noexcept |
Returns true if the lock is held or the object has been disposed. | |
auto | lock_this (CyclTime now) noexcept |
The BasicDisposer class template exposes a public dispose method that may be safely called from callback functions while a lock is held.
Definition at line 29 of file Disposer.hpp.
|
defaultnoexcept |
|
delete |
|
delete |
|
protecteddefault |
|
delete |
|
delete |
|
inlinenoexcept |
The dispose method may be safely called from callback functions while a lock is held.
Definition at line 42 of file Disposer.hpp.
|
inlineprotectednoexcept |
Returns true if the lock is held or the object has been disposed.
Definition at line 58 of file Disposer.hpp.
|
inlineprotectednoexcept |
Returns a lock that prevents the disposer instance from being deleted while the lock is held.
Definition at line 62 of file Disposer.hpp.