History log of /openbmc/sdeventplus/example/ (Results 1 – 18 of 18)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
a8c11e3c10-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 ...


/openbmc/sdeventplus/.clang-format
/openbmc/sdeventplus/.gitignore
/openbmc/sdeventplus/OWNERS
/openbmc/sdeventplus/README.md
delayed_echo.cpp
follow.cpp
heartbeat.cpp
heartbeat_timer.cpp
/openbmc/sdeventplus/src/meson.build
/openbmc/sdeventplus/src/sdeventplus/clock.cpp
/openbmc/sdeventplus/src/sdeventplus/clock.hpp
/openbmc/sdeventplus/src/sdeventplus/event.cpp
/openbmc/sdeventplus/src/sdeventplus/event.hpp
/openbmc/sdeventplus/src/sdeventplus/exception.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.hpp
/openbmc/sdeventplus/src/sdeventplus/source/child.cpp
/openbmc/sdeventplus/src/sdeventplus/source/child.hpp
/openbmc/sdeventplus/src/sdeventplus/source/event.cpp
/openbmc/sdeventplus/src/sdeventplus/source/event.hpp
/openbmc/sdeventplus/src/sdeventplus/source/io.cpp
/openbmc/sdeventplus/src/sdeventplus/source/io.hpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.cpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.hpp
/openbmc/sdeventplus/src/sdeventplus/source/time.cpp
/openbmc/sdeventplus/src/sdeventplus/source/time.hpp
/openbmc/sdeventplus/src/sdeventplus/test/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/types.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/sdbus.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.cpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.hpp
/openbmc/sdeventplus/subprojects/sdbusplus.wrap
/openbmc/sdeventplus/subprojects/stdplus.wrap
/openbmc/sdeventplus/test/clock.cpp
/openbmc/sdeventplus/test/event.cpp
/openbmc/sdeventplus/test/exception.cpp
/openbmc/sdeventplus/test/meson.build
/openbmc/sdeventplus/test/source/base.cpp
/openbmc/sdeventplus/test/source/child.cpp
/openbmc/sdeventplus/test/source/event.cpp
/openbmc/sdeventplus/test/source/io.cpp
/openbmc/sdeventplus/test/source/signal.cpp
/openbmc/sdeventplus/test/source/time.cpp
/openbmc/sdeventplus/test/utility/sdbus.cpp
/openbmc/sdeventplus/test/utility/timer.cpp
7cc1ec9f25-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 ...

fc18eb0315-Apr-2021 Patrick Williams <patrick@stwcx.xyz>

build: rename dependency variable

Per [1], the naming convention for dependencies is '<project_name>_dep',
for consistency when importing the project as a meson subproject.
Rename the variable here

build: rename dependency variable

Per [1], the naming convention for dependencies is '<project_name>_dep',
for consistency when importing the project as a meson subproject.
Rename the variable here to match this convention.

Based on [2] there appears to not be any current users of this as a
subproject which would need to be updated.

1. https://mesonbuild.com/Subprojects.html#naming-convention-for-dependency-variables
2. https://github.com/search?q=org%3Aopenbmc+get_variable&type=code

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I66082b3f667e9d00ede02184d0b008d0dd22d36b

show more ...

1b49b6f023-Mar-2019 William A. Kennington III <wak@google.com>

example/heartbeat: Demonstrate a floating source

This adds a trivial example of a floating source.

Change-Id: Iefc30e69ee306f431eb0f2a68bf8906f23218636
Signed-off-by: William A. Kennington III <wak

example/heartbeat: Demonstrate a floating source

This adds a trivial example of a floating source.

Change-Id: Iefc30e69ee306f431eb0f2a68bf8906f23218636
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


/openbmc/sdeventplus/.clang-ignore
/openbmc/sdeventplus/.gitignore
/openbmc/sdeventplus/README.md
heartbeat.cpp
heartbeat_timer.cpp
/openbmc/sdeventplus/meson.build
/openbmc/sdeventplus/src/meson.build
/openbmc/sdeventplus/src/sdeventplus/event.cpp
/openbmc/sdeventplus/src/sdeventplus/event.hpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.cpp
/openbmc/sdeventplus/src/sdeventplus/internal/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/source/base.cpp
/openbmc/sdeventplus/src/sdeventplus/source/base.hpp
/openbmc/sdeventplus/src/sdeventplus/source/child.cpp
/openbmc/sdeventplus/src/sdeventplus/source/child.hpp
/openbmc/sdeventplus/src/sdeventplus/source/event.cpp
/openbmc/sdeventplus/src/sdeventplus/source/event.hpp
/openbmc/sdeventplus/src/sdeventplus/source/io.cpp
/openbmc/sdeventplus/src/sdeventplus/source/io.hpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.cpp
/openbmc/sdeventplus/src/sdeventplus/source/signal.hpp
/openbmc/sdeventplus/src/sdeventplus/source/time.cpp
/openbmc/sdeventplus/src/sdeventplus/source/time.hpp
/openbmc/sdeventplus/src/sdeventplus/test/sdevent.hpp
/openbmc/sdeventplus/src/sdeventplus/types.hpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.cpp
/openbmc/sdeventplus/src/sdeventplus/utility/timer.hpp
/openbmc/sdeventplus/subprojects/fmt.wrap
/openbmc/sdeventplus/subprojects/function2.wrap
/openbmc/sdeventplus/subprojects/googletest.wrap
/openbmc/sdeventplus/subprojects/span-lite.wrap
/openbmc/sdeventplus/subprojects/stdplus.wrap
/openbmc/sdeventplus/test/event.cpp
/openbmc/sdeventplus/test/meson.build
/openbmc/sdeventplus/test/source/base.cpp
/openbmc/sdeventplus/test/source/child.cpp
/openbmc/sdeventplus/test/source/event.cpp
/openbmc/sdeventplus/test/source/io.cpp
/openbmc/sdeventplus/test/source/signal.cpp
/openbmc/sdeventplus/test/source/time.cpp
/openbmc/sdeventplus/test/utility/timer.cpp
b315a2ab27-Jun-2019 William A. Kennington III <wak@google.com>

clang-format: Apply update 6 -> 8 fixes

Change-Id: I327de53cbed42d46b88f40f0b15637fda6896f8b
Signed-off-by: William A. Kennington III <wak@google.com>

ce045aca26-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 ...


8ec59e6203-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 ...

2584f9d723-Mar-2019 William A. Kennington III <wak@google.com>

example/heartbeat: Add signal handling

This makes the example a little more interesting as we now have multiple
sources and we can analyze memory safety with valgrind by just sending a
SIGINT to qui

example/heartbeat: Add signal handling

This makes the example a little more interesting as we now have multiple
sources and we can analyze memory safety with valgrind by just sending a
SIGINT to quit cleanly.

Change-Id: Id15fe58f798d3b137f91228025f48a5e4cd5fc50
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

d4b33e9504-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 ...

ba04ffb520-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 ...

fa9431d525-Sep-2018 William A. Kennington III <wak@google.com>

example: Add a repeating timer sample

Tested:
Ran through unit test suite and manually executed the example
program to make sure it works as expected.

Change-Id: I77cffdd038df4eab774f0d162f

example: Add a repeating timer sample

Tested:
Ran through unit test suite and manually executed the example
program to make sure it works as expected.

Change-Id: I77cffdd038df4eab774f0d162f49273650638ad6
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

406b86e425-Sep-2018 William A. Kennington III <wak@google.com>

example/heartbeat: Refactor

This cleans up the clock and time source declarations by defining the
ClockId and Timer types up front.

Tested:
Built the example and it runs as expected.

Change-Id

example/heartbeat: Refactor

This cleans up the clock and time source declarations by defining the
ClockId and Timer types up front.

Tested:
Built the example and it runs as expected.

Change-Id: I67326f5804f8eea54624150f6aa5d735bbde05fd
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

8fd0cd4c23-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Improve some method types

7b79fb5523-Jul-2018 William A. Kennington III <wak@google.com>

example/follow: Implement

7e2e60e717-Jul-2018 William A. Kennington III <wak@google.com>

example/heartbeat: Show a time example

321ed01117-Jul-2018 William A. Kennington III <wak@google.com>

configure: Make examples optional

ae7d4c5017-Jul-2018 William A. Kennington III <wak@google.com>

makefile: Clean up compiler flags

8f90e28b17-Jul-2018 William A. Kennington III <wak@google.com>

Initial Commit