#
a8c11e3c |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I84a952aae0e96b2960d8622659902df660d5ddb8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7cc1ec9f |
| 25-Oct-2021 |
William A. Kennington III <wak@google.com> |
example/delayed_echo: Fix bogus compiler warning
An std::array size may be uninitialized? ok... ``` ../example/delayed_echo.cpp: In lambda function: ../example/delayed_echo.cpp:46:29: error: ‘buffer
example/delayed_echo: Fix bogus compiler warning
An std::array size may be uninitialized? ok... ``` ../example/delayed_echo.cpp: In lambda function: ../example/delayed_echo.cpp:46:29: error: ‘buffer’ may be used uninitialized [-Werror=maybe-uninitialized] 46 | ssize_t bytes = read(fd, buffer.data(), std::size(buffer)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/array:41, from ../example/delayed_echo.cpp:6: /usr/include/c++/11/bits/range_access.h:245:5: note: by argument 1 of type ‘const std::array<char, 4096>&’ to ‘constexpr decltype (__cont.size()) std::size(const _Container&) [with _Container = std::array<char, 4096>]’ declared here 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ ../example/delayed_echo.cpp:45:32: note: ‘buffer’ declared here 45 | std::array<char, 4096> buffer; ```
Change-Id: I534dcfe5c4e2b843a061066548d8a4f9e6f9cc6f Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
ba04ffb5 |
| 20-Sep-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Implement oneshot timers
This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up t
utility/timer: Implement oneshot timers
This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up the timer less verbose if you do not already know the timeout interval.
Tested: Run through unit tests and did a sample integration with phosphor-watchdog and phosphor-networkd. Verified that the new oneshot example works as expected.
Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|