Add strand inner_executor() function.
This commit is contained in:
parent
4f5943cda7
commit
24bb615610
@ -28,6 +28,9 @@ template <typename Executor>
|
||||
class strand
|
||||
{
|
||||
public:
|
||||
/// The type of the underlying executor.
|
||||
typedef Executor inner_executor_type;
|
||||
|
||||
/// Default constructor.
|
||||
/**
|
||||
* This constructor is only valid if the underlying executor type is default
|
||||
@ -138,6 +141,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/// Obtain the underlying executor.
|
||||
inner_executor_type get_inner_executor() const ASIO_NOEXCEPT
|
||||
{
|
||||
return executor_;
|
||||
}
|
||||
|
||||
/// Obtain the underlying execution context.
|
||||
execution_context& context() ASIO_NOEXCEPT
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user