identt
Classes | Public Member Functions | List of all members
identt::http::ScopeRunner Class Reference

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< SharedLockcontinue_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.
 

Detailed Description

Makes it possible to for instance cancel Asio handlers without stopping asio::io_service.

Member Function Documentation

§ continue_lock()

std::unique_ptr<SharedLock> identt::http::ScopeRunner::continue_lock ( )
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.


The documentation for this class was generated from the following file: