e68f5b51 | 23-Mar-2019 |
William A. Kennington III <wak@google.com> |
event: Add non-owning constructor
This allows internal store event objects without having to contain circular references. A circular reference in an event source will cause the event loop from ever
event: Add non-owning constructor
This allows internal store event objects without having to contain circular references. A circular reference in an event source will cause the event loop from ever cleaning up correctly.
Change-Id: I23fe0c95093953071216cf1deeb17e79defb7ffb Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
05784720 | 03-Jun-2020 |
William A. Kennington III <wak@google.com> |
src: Fix pkgconfig generation missing systemd requirement
Change-Id: I529f07c745c04a2b8e2e8bfcca4d64649e010b64 Signed-off-by: William A. Kennington III <wak@google.com> |
fa27734c | 20-Feb-2020 |
William A. Kennington III <wak@google.com> |
src: Allow for stdplus to be vendored
Change-Id: I0ade83798e1458e31b011119f95fc17c30617153 Signed-off-by: William A. Kennington III <wak@google.com> |
e19c3cf6 | 22-Mar-2019 |
William A. Kennington III <wak@google.com> |
sdevent: Support source destroy callbacks
Will be needed to support heap allocated userdata and floating sources.
Change-Id: I927acb3e03fb6c724e762b3ac47cd0d4d297ef87 Signed-off-by: William A. Kenn
sdevent: Support source destroy callbacks
Will be needed to support heap allocated userdata and floating sources.
Change-Id: I927acb3e03fb6c724e762b3ac47cd0d4d297ef87 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
594e5a85 | 22-Mar-2019 |
William A. Kennington III <wak@google.com> |
sdevent: Support getting userdata
Will be needed when we start storing the userdata on the heap
Change-Id: I31d2c2b6741d0a4422a79b4d0a752d352121ae3c Signed-off-by: William A. Kennington III <wak@go
sdevent: Support getting userdata
Will be needed when we start storing the userdata on the heap
Change-Id: I31d2c2b6741d0a4422a79b4d0a752d352121ae3c Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
ce045aca | 26-Apr-2019 |
William A. Kennington III <wak@google.com> |
autotools: Remove
Meson is now used to build this package in all of the necessary places.
Change-Id: Ic5155621967fa94ec03eced2193e0d453b174eba Signed-off-by: William A. Kennington III <wak@google.c
autotools: Remove
Meson is now used to build this package in all of the necessary places.
Change-Id: Ic5155621967fa94ec03eced2193e0d453b174eba Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
8ec59e62 | 03-Apr-2019 |
William A. Kennington III <wak@google.com> |
meson: Use declare_dependency for libraries
Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look lik
meson: Use declare_dependency for libraries
Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look like any other system dependency.
Change-Id: Ife3bcd3dcbd423f08c513f9a05fc8cabff41e2f6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
5457dae0 | 03-Apr-2019 |
William A. Kennington III <wak@google.com> |
meson: Style fix
Change-Id: I9b4b86ecfab6649671b24d957bd47c7e8e375e21 Signed-off-by: William A. Kennington III <wak@google.com> |
2301d47f | 24-Mar-2019 |
William A. Kennington III <wak@google.com> |
source/base: Fix docs for owning constructor
Change-Id: I22667a652bc4db8afc05aea1736b678a213a7e89 Signed-off-by: William A. Kennington III <wak@google.com> |
1e125d97 | 26-Mar-2019 |
William A. Kennington III <wak@google.com> |
source/base: sourceCallback forward reference type information
Change-Id: I2006ae1a116ec9a664d0dd3b56ed5242f8dbd469 Signed-off-by: William A. Kennington III <wak@google.com> |
8eaf5fcc | 29-Mar-2019 |
William A. Kennington III <wak@google.com> |
internal/utils: performCallback should preserve argument references
Arguments including the function are now passed with reference types forwarded.
Change-Id: I32cf4704737faa6c140d16352528ceb0d738f
internal/utils: performCallback should preserve argument references
Arguments including the function are now passed with reference types forwarded.
Change-Id: I32cf4704737faa6c140d16352528ceb0d738f5b8 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
9ce0d10b | 22-Mar-2019 |
William A. Kennington III <wak@google.com> |
sdevent: Fix missing parameter names
Change-Id: I46fb9436fa955ea7c5a3f2319a4332925ef33729 Signed-off-by: William A. Kennington III <wak@google.com> |
92f21caf | 21-Mar-2019 |
William A. Kennington III <wak@google.com> |
tree-wide: Use cexec for checking calls
This makes error handling guaranteed and slightly more compact.
Tested: Ran through unit test suite.
Change-Id: If12cf25302390e5e5238f80b4fdb7ea577b5b5c
tree-wide: Use cexec for checking calls
This makes error handling guaranteed and slightly more compact.
Tested: Ran through unit test suite.
Change-Id: If12cf25302390e5e5238f80b4fdb7ea577b5b5c8 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
b555c4e6 | 13-Nov-2018 |
William A. Kennington III <wak@google.com> |
source/base: Remove unused ref constructor
We don't ever use this constructor and it was effectively package private. Remove it as we don't ever need to add references to our sd_event_source*.
Test
source/base: Remove unused ref constructor
We don't ever use this constructor and it was effectively package private. Remove it as we don't ever need to add references to our sd_event_source*.
Tested: Built and run through unit test suite.
Change-Id: I1ca9fd4ecfdef1a3fd5aa2ca214be657c1a04b94 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
e04cb03b | 13-Nov-2018 |
William A. Kennington III <wak@google.com> |
internal/sdref: Remove in favor of stdplus/handle
We no longer need to roll our own managed handle type now that stdplus implements a generic one.
Tested: Built and run through unit tests.
Cha
internal/sdref: Remove in favor of stdplus/handle
We no longer need to roll our own managed handle type now that stdplus implements a generic one.
Tested: Built and run through unit tests.
Change-Id: Id34cd8d3ffacf7901d49cac335fa93f744f0e310 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
127f3214 | 13-Nov-2018 |
William A. Kennington III <wak@google.com> |
tree-wide: Use get() helper instead of direct access
This makes it easier to refactor the handle used to hold the pointers.
Change-Id: Ie6eaf9cab998039f18d61a6321774a3db3fa5564 Signed-off-by: Willi
tree-wide: Use get() helper instead of direct access
This makes it easier to refactor the handle used to hold the pointers.
Change-Id: Ie6eaf9cab998039f18d61a6321774a3db3fa5564 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
2d8f8cc0 | 28-Mar-2019 |
William A. Kennington III <wak@google.com> |
meson: Add version to library
Otherwise bitbake will treat it as a private library and not move it to the proper directory and generate the necessary shlib metadata.
Change-Id: Ibc1409fd63ff1d73ef9
meson: Add version to library
Otherwise bitbake will treat it as a private library and not move it to the proper directory and generate the necessary shlib metadata.
Change-Id: Ibc1409fd63ff1d73ef97e9fb7ed4aa370807c0a9 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
d4b33e95 | 04-Dec-2018 |
William A. Kennington III <wak@google.com> |
meson: Add alternative build system
For now both autotools and meson will be maintained side by side. Eventually we should remove the autotools build system.
Change-Id: I04382b17d5267ee218e2658fc16
meson: Add alternative build system
For now both autotools and meson will be maintained side by side. Eventually we should remove the autotools build system.
Change-Id: I04382b17d5267ee218e2658fc163da17853f637a 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 ...
|
b53ef902 | 29-Oct-2018 |
William A. Kennington III <wak@google.com> |
source/*: Make updating callbacks possible
Sometimes callers want to be able to update the callback used when the source is acted upon. This is needed for updating references stored in the callback.
source/*: Make updating callbacks possible
Sometimes callers want to be able to update the callback used when the source is acted upon. This is needed for updating references stored in the callback.
Tested: Run through the unit test suite.
Change-Id: I78bda32569287964bfc9d49501869d3a2b497f3d Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
463d5c34 | 29-Oct-2018 |
William A. Kennington III <wak@google.com> |
clock: Make it possible to move assign
When the internal Event is const, it makes it impossible to generate the implicit move constructors since moving an Event is non-const.
Tested: Object is
clock: Make it possible to move assign
When the internal Event is const, it makes it impossible to generate the implicit move constructors since moving an Event is non-const.
Tested: Object is now movable by containers. This was verified by using a future commit that requires movability of timers.
Change-Id: Id9859806899443e3daf425dacd4bd23fe9a52f58 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 ...
|
c07ddb5a | 26-Sep-2018 |
William A. Kennington III <wak@google.com> |
source/signal: Clarify signal bocking during construction
Blocking signals is a potentially unexpected requirement of the user prior to constructing a signal source. Clarify this requirement base on
source/signal: Clarify signal bocking during construction
Blocking signals is a potentially unexpected requirement of the user prior to constructing a signal source. Clarify this requirement base on guidance from the sd_event_add_signal(3) docs.
Change-Id: I34335f1882acbf54a3219324e4e23e803a763365 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 ...
|