projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu-ht: rename "stolen" to "flags"
[userspace-rcu.git]
/
urcu-defer.c
diff --git
a/urcu-defer.c
b/urcu-defer.c
index 13f94fa0f05b05833152265da9147bdb456e88b6..ccf35116d2b73e63634730a475d09feeb650ae38 100644
(file)
--- a/
urcu-defer.c
+++ b/
urcu-defer.c
@@
-28,7
+28,6
@@
#include <string.h>
#include <errno.h>
#include <poll.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
-#include <linux/futex.h>
#include <sys/time.h>
#include <syscall.h>
#include <unistd.h>
#include <sys/time.h>
#include <syscall.h>
#include <unistd.h>
@@
-38,6
+37,8
@@
#include "urcu-defer.h"
#define futex(...) syscall(__NR_futex, __VA_ARGS__)
#include "urcu-defer.h"
#define futex(...) syscall(__NR_futex, __VA_ARGS__)
+#define FUTEX_WAIT 0
+#define FUTEX_WAKE 1
void __attribute__((destructor)) urcu_defer_exit(void);
void __attribute__((destructor)) urcu_defer_exit(void);
@@
-112,7
+113,7
@@
static void wake_up_defer(void)
{
if (unlikely(atomic_read(&defer_thread_futex) == -1)) {
atomic_set(&defer_thread_futex, 0);
{
if (unlikely(atomic_read(&defer_thread_futex) == -1)) {
atomic_set(&defer_thread_futex, 0);
- futex(&defer_thread_futex, FUTEX_WAKE,
0
,
+ futex(&defer_thread_futex, FUTEX_WAKE,
1
,
NULL, NULL, 0);
}
}
NULL, NULL, 0);
}
}
This page took
0.023779 seconds
and
4
git commands to generate.