projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git]
/
urcu-defer.c
diff --git
a/urcu-defer.c
b/urcu-defer.c
index 3cc1a0c0b32b9132673b47a361ea116f9a8bf338..b7b3c51f2c0eed98562b1a0b8c726c5daf30a3cc 100644
(file)
--- a/
urcu-defer.c
+++ b/
urcu-defer.c
@@
-232,15
+232,9
@@
end:
/*
* _defer_rcu - Queue a RCU callback.
*/
/*
* _defer_rcu - Queue a RCU callback.
*/
-void _defer_rcu
_ratelimit(void (*fct)(void *p), void *p, int (*rl)(void *p)
)
+void _defer_rcu
(void (*fct)(void *p), void *p
)
{
unsigned long head, tail;
{
unsigned long head, tail;
- int sync;
-
- /*
- * Verify if we reached the rate limiter threshold.
- */
- sync = rl ? rl(p) : 0;
/*
* Head is only modified by ourself. Tail can be modified by reclamation
/*
* Head is only modified by ourself. Tail can be modified by reclamation
@@
-321,9
+315,9
@@
void *thr_defer(void *args)
* library wrappers to be used by non-LGPL compatible source code.
*/
* library wrappers to be used by non-LGPL compatible source code.
*/
-void defer_rcu
_ratelimit(void (*fct)(void *p), void *p, int (*rl)(void *p)
)
+void defer_rcu
(void (*fct)(void *p), void *p
)
{
{
- _defer_rcu
_ratelimit(fct, p, rl
);
+ _defer_rcu
(fct, p
);
}
static void start_defer_thread(void)
}
static void start_defer_thread(void)
This page took
0.024708 seconds
and
4
git commands to generate.