Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
emper
Commits
ae890661
Commit
ae890661
authored
Feb 25, 2022
by
Florian Fischer
Browse files
waitfd: dynamically decide the syscall number
parent
00c81951
Changes
1
Hide whitespace changes
Inline
Side-by-side
emper/sleep_strategy/WaitfdSleepStrategy.hpp
View file @
ae890661
...
...
@@ -14,13 +14,21 @@
#include
"FiberHint.hpp"
#include
"emper-common.h"
#include
"emper-config.h"
// IWYU pragma: keep
#include
"lib/LinuxVersion.hpp"
#include
"sleep_strategy/AbstractIoSleepStrategy.hpp"
#include
"sleep_strategy/AbstractWorkerSleepStrategy.hpp"
class
Runtime
;
#ifndef __NR_waitfd
#define __NR_waitfd 450
static
const
unsigned
__NR_waitfd
=
[]()
->
unsigned
{
if
(
EMPER_LINUX_GE
(
"5.17"
))
return
451
;
else
if
(
EMPER_LINUX_GE
(
"5.16"
))
return
450
;
else
return
449
;
}();
#endif
namespace
emper
::
sleep_strategy
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment