...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Provides serialised function invocation for any executor type.
template< typename Executor> class strand
Name |
Description |
---|---|
The type of the underlying executor. |
Name |
Description |
---|---|
Obtain the underlying execution context. |
|
Request the strand to invoke the given function object. |
|
Request the strand to invoke the given function object. |
|
Request the strand to invoke the given function object. |
|
Obtain the underlying executor. |
|
Inform the strand that some work is no longer outstanding. |
|
Inform the strand that it has some outstanding work to do. |
|
Assignment operator. |
|
Request the strand to invoke the given function object. |
|
Forward a preference to the underlying executor. |
|
Forward a query to the underlying executor. |
|
Forward a requirement to the underlying executor. |
|
Determine whether the strand is running in the current thread. |
|
strand [constructor] |
Default constructor. |
~strand [destructor] |
Destructor. |
Name |
Description |
---|---|
Compare two strands for inequality. |
|
Compare two strands for equality. |
Header: boost/asio/strand.hpp
Convenience header: boost/asio.hpp