projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for sys_futex autodetection
[userspace-rcu.git]
/
urcu-static.h
diff --git
a/urcu-static.h
b/urcu-static.h
index 2e7371ef5000194c2d302803c7ba4a359a64c7d3..97d94dc0b8817b5a87e83fafb3de9d3c6bd011b1 100644
(file)
--- a/
urcu-static.h
+++ b/
urcu-static.h
@@
-39,10
+39,7
@@
#include <urcu/system.h>
#include <urcu/uatomic_arch.h>
#include <urcu/list.h>
#include <urcu/system.h>
#include <urcu/uatomic_arch.h>
#include <urcu/list.h>
-
-#define futex(...) syscall(__NR_futex, __VA_ARGS__)
-#define FUTEX_WAIT 0
-#define FUTEX_WAKE 1
+#include <urcu/urcu-futex.h>
/*
* This code section can only be included in LGPL 2.1 compatible source code.
/*
* This code section can only be included in LGPL 2.1 compatible source code.
@@
-182,7
+179,7
@@
static inline void wake_up_gp(void)
{
if (unlikely(uatomic_read(&gp_futex) == -1)) {
uatomic_set(&gp_futex, 0);
{
if (unlikely(uatomic_read(&gp_futex) == -1)) {
uatomic_set(&gp_futex, 0);
- futex(&gp_futex, FUTEX_WAKE, 1,
+ futex
_async
(&gp_futex, FUTEX_WAKE, 1,
NULL, NULL, 0);
}
}
NULL, NULL, 0);
}
}
This page took
0.023406 seconds
and
4
git commands to generate.