Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
sdeventplus
/
0a816c5d8054dfe3867423aa4303c5cf7b4a92e9
/
.
/
example
/
follow.cpp
blob: 36cd44be619d58252af5b8e09c13b9338d17521b [
file
] [
log
] [
blame
]
#include
<cstdio>
#include
<sdeventplus/event.hpp>
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"Usage: %s [file]\n"
,
argv
[
0
]);
return
1
;
}
sdeventplus
::
Event
event
=
sdeventplus
::
Event
::
get_default
();
return
event
.
loop
();
}