Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
sdeventplus
/
321ed0114076aee9f556926362555fa285ab04f0
/
.
/
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
();
}