#
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 ...
|
#
3d37b581 |
| 30-Mar-2019 |
William A. Kennington III <wak@google.com> |
utility/timer: Implement heap based userdata
Change-Id: I38b127e4fb147f207f32ff44a9f8d82ee7866ba9 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
5320b1f5 |
| 29-Mar-2019 |
William A. Kennington III <wak@google.com> |
source/*: Implement heap based userdata
This makes no immediate change to the external interface, but it will enable us to do things like making copies of the event sources and support for floating
source/*: Implement heap based userdata
This makes no immediate change to the external interface, but it will enable us to do things like making copies of the event sources and support for floating event source types.
Change-Id: Ida73e773eb0869f6f6f21c1e03c61e9ce2b5625c Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
08ebb399 |
| 30-Oct-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Implement callback setting
All of the other classes that take callbacks support having the callback updated.
Tested: Builds and passed through the unit test suite.
Change-Id: I0
utility/timer: Implement callback setting
All of the other classes that take callbacks support having the callback updated.
Tested: Builds and passed through the unit test suite.
Change-Id: I0efcd074523fa6ec0cc84c7a930346dd9340f7ec Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
a5f8596a |
| 29-Oct-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Make movable
Now that we can update the callbacks of our sources, we can move the timer object freely by updating the callback when moved.
Tested: Unit tests pass, and we no long
utility/timer: Make movable
Now that we can update the callbacks of our sources, we can move the timer object freely by updating the callback when moved.
Tested: Unit tests pass, and we no longer see any valgrind issues when moving the timer object.
Change-Id: I15baf97538459ca8b9c48b75dba77d09b7b5075b Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
27b7301a |
| 18-Oct-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Make it possible to get the Event
Other event sources expose the ability to get th event used for constructing the source. Since our timer is basically just a time source, we should b
utility/timer: Make it possible to get the Event
Other event sources expose the ability to get th event used for constructing the source. Since our timer is basically just a time source, we should be able to trivially get the event object.
Tested: Built and run through unit tests
Change-Id: I4b4192797652a903cba90d6e73771014df7702d6 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 ...
|
#
4755818e |
| 25-Sep-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Callback should pass in the timer
This makes the timer better resemble the other source types, and makes it easier to access timer properties from the callback.
Since we do not yet h
utility/timer: Callback should pass in the timer
This makes the timer better resemble the other source types, and makes it easier to access timer properties from the callback.
Since we do not yet have any committed users of this API it is safe to change it.
Tested: Unit tests were run and builds work fine.
Change-Id: I9ecb24a20bc822b2ab55900e47a7cae834ba873d Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
81282e1a |
| 19-Sep-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Implement
We often need a continually ticking timer for our daemons. This utility wraps an sd_event time source as a convenience. This is meant to be a usable replacement for the time
utility/timer: Implement
We often need a continually ticking timer for our daemons. This utility wraps an sd_event time source as a convenience. This is meant to be a usable replacement for the timer.hpp found in other openbmc projects.
Tested: New tests pass with full coverage. Changes to the phosphor-watchdog that rely on this utility work as expected.
Change-Id: Id12aed9e5b018e7eca825c4a7ac7b4f46e2f04c6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|