|
identt
|
Makes it possible to for instance cancel Asio handlers without stopping asio::io_service. More...
#include <Utility.hpp>
Classes | |
| class | SharedLock |
Public Member Functions | |
| std::unique_ptr< SharedLock > | continue_lock () noexcept |
| Returns nullptr if scope should be exited, or a shared lock otherwise. More... | |
| void | stop () noexcept |
| Blocks until all shared locks are released, then prevents future shared locks. | |
Makes it possible to for instance cancel Asio handlers without stopping asio::io_service.
|
inlinenoexcept |
Returns nullptr if scope should be exited, or a shared lock otherwise.
The shared lock ensures that a potential destructor call is delayed until all locks are released.
1.8.12