diff options
| author | Brad Bishop <bradleyb@us.ibm.com> | 2016-10-12 15:40:04 -0400 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2016-10-14 13:25:02 +0000 |
| commit | 887ebf64701bf618bd666fde44924d4cd9b51034 (patch) | |
| tree | d0257311567579ad03761f6706b91ad31d89bc85 | |
| parent | aed81792294cc1ed604ae7470b1598f12b479d12 (diff) | |
| download | sdbusplus-887ebf64701bf618bd666fde44924d4cd9b51034.tar.gz sdbusplus-887ebf64701bf618bd666fde44924d4cd9b51034.zip | |
bus: use infinity for default timeout
A value of zero meant don't block at all.
Change-Id: Id148a63e9f212ba67ec04d50ff27e92d15689369
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
| -rw-r--r-- | sdbusplus/bus.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdbusplus/bus.hpp b/sdbusplus/bus.hpp index 2dec979..7cb27b7 100644 --- a/sdbusplus/bus.hpp +++ b/sdbusplus/bus.hpp @@ -1,6 +1,7 @@ #pragma once #include <memory> +#include <climits> #include <systemd/sd-bus.h> #include <sdbusplus/message.hpp> @@ -69,7 +70,7 @@ struct bus * * @param[in] timeout_us - Timeout in usec. */ - void wait(uint64_t timeout_us = 0) + void wait(uint64_t timeout_us = ULLONG_MAX) { sd_bus_wait(_bus.get(), timeout_us); } |

