From 0c07c320a5872aaf3cf9efc8f162a33b25d577c3 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Wed, 22 Mar 2017 14:02:30 -0500 Subject: Enable multiple commands to be queued at once With this commit, the control host interface allows multiple commands to be queued up and sent in a FIFO order to the host Change-Id: I76908d988608ef6dcc1d7f945c6c4a1c5c29e44b Signed-off-by: Andrew Geissler --- host-interface.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host-interface.hpp') diff --git a/host-interface.hpp b/host-interface.hpp index 36b41d9..0ad3bfb 100644 --- a/host-interface.hpp +++ b/host-interface.hpp @@ -61,11 +61,15 @@ class Host : public sdbusplus::server::object::object< Command command = this->workQueue.front(); this->workQueue.pop(); this->commandComplete(command, Result::Success); + this->checkQueue(); return command; } private: + /** @brief Check if anything in queue and alert host if so */ + void checkQueue(); + /** @brief Persistent sdbusplus DBus bus connection. */ sdbusplus::bus::bus& bus; -- cgit v1.2.1