Add strand inner_executor() function.

This commit is contained in:
Christopher Kohlhoff 2014-10-03 08:59:56 +10:00
parent 4f5943cda7
commit 24bb615610

View File

@ -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
{