commit | cd29b6d01de6fb30d27b1f548f13400131bfef2b | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Tue Jan 26 18:43:18 2021 +0800 |
committer | George Liu <liuxiwei@inspur.com> | Tue Jan 26 18:58:57 2021 +0800 |
tree | 1be3d81fab042a4ae3e811595b3dab660623858d | |
parent | b0a0e4db4628e2bab502767aa08cf236a0d0bf5d [diff] |
Fix the get_new method When calling the get_new() method to generate an Event object, the ::sd_event_new method should be used instead the ::sd_event_default method. Tested: Before call get_default and get_new(): event_default = 0x646da0 event_new = 0x646da0 After call get_default and get_new(): event_default = 0x646da0 event_new = 0x646ff8 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I232f1167949ca9bbdedcd368092adf50bf268941
sdeventplus is a c++ wrapper around the systemd sd_event apis meant to provide c++ ergonomics to their usage.
The sdeventplus library requires a libsystemd development package on the system for sd-event.
For a standard release build, you want something like:
meson setup -Dexamples=false -Dtests=disabled builddir ninja -C builddir ninja -C builddir install
For a test / debug build, a typical configuration is
meson setup -Dtests=enabled builddir meson test -C builddir