SDK: Update docs

This commit is contained in:
Alexey Rybalchenko 2020-02-21 11:45:38 +01:00 committed by Dennis Klein
parent 811d1b8973
commit 41fc27d504

View File

@ -556,6 +556,14 @@ class BasicTopology : public AsioBase<Executor, Allocator>
} }
public: public:
/// @brief Initiate waiting for selected FairMQ devices to reach given last & current state in this topology
/// @param targetLastState the target last device state to wait for
/// @param targetCurrentState the target device state to wait for
/// @param path Select a subset of FairMQ devices in this topology, empty selects all
/// @param timeout Timeout in milliseconds, 0 means no timeout
/// @param token Asio completion token
/// @tparam CompletionToken Asio completion token type
/// @throws std::system_error
template<typename CompletionToken> template<typename CompletionToken>
auto AsyncWaitForState(const DeviceState targetLastState, auto AsyncWaitForState(const DeviceState targetLastState,
const DeviceState targetCurrentState, const DeviceState targetCurrentState,
@ -594,18 +602,35 @@ class BasicTopology : public AsioBase<Executor, Allocator>
token); token);
} }
template<typename CompletionToken> /// @brief Initiate waiting for selected FairMQ devices to reach given last & current state in this topology
auto AsyncWaitForState(const DeviceState targetCurrentState, CompletionToken&& token) /// @param targetLastState the target last device state to wait for
{ /// @param targetCurrentState the target device state to wait for
return AsyncWaitForState(DeviceState::Ok, targetCurrentState, "", Duration(0), std::move(token)); /// @param token Asio completion token
} /// @tparam CompletionToken Asio completion token type
/// @throws std::system_error
template<typename CompletionToken> template<typename CompletionToken>
auto AsyncWaitForState(const DeviceState targetLastState, const DeviceState targetCurrentState, CompletionToken&& token) auto AsyncWaitForState(const DeviceState targetLastState, const DeviceState targetCurrentState, CompletionToken&& token)
{ {
return AsyncWaitForState(targetLastState, targetCurrentState, "", Duration(0), std::move(token)); return AsyncWaitForState(targetLastState, targetCurrentState, "", Duration(0), std::move(token));
} }
/// @brief Initiate waiting for selected FairMQ devices to reach given current state in this topology
/// @param targetCurrentState the target device state to wait for
/// @param token Asio completion token
/// @tparam CompletionToken Asio completion token type
/// @throws std::system_error
template<typename CompletionToken>
auto AsyncWaitForState(const DeviceState targetCurrentState, CompletionToken&& token)
{
return AsyncWaitForState(DeviceState::Ok, targetCurrentState, "", Duration(0), std::move(token));
}
/// @brief Wait for selected FairMQ devices to reach given last & current state in this topology
/// @param targetLastState the target last device state to wait for
/// @param targetCurrentState the target device state to wait for
/// @param path Select a subset of FairMQ devices in this topology, empty selects all
/// @param timeout Timeout in milliseconds, 0 means no timeout
/// @throws std::system_error
auto WaitForState(const DeviceState targetLastState, const DeviceState targetCurrentState, const std::string& path = "", Duration timeout = Duration(0)) auto WaitForState(const DeviceState targetLastState, const DeviceState targetCurrentState, const std::string& path = "", Duration timeout = Duration(0))
-> std::error_code -> std::error_code
{ {
@ -619,6 +644,11 @@ class BasicTopology : public AsioBase<Executor, Allocator>
return ec; return ec;
} }
/// @brief Wait for selected FairMQ devices to reach given current state in this topology
/// @param targetCurrentState the target device state to wait for
/// @param path Select a subset of FairMQ devices in this topology, empty selects all
/// @param timeout Timeout in milliseconds, 0 means no timeout
/// @throws std::system_error
auto WaitForState(const DeviceState targetCurrentState, const std::string& path = "", Duration timeout = Duration(0)) auto WaitForState(const DeviceState targetCurrentState, const std::string& path = "", Duration timeout = Duration(0))
-> std::error_code -> std::error_code
{ {