projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update list, rculist and hlist
[userspace-rcu.git]
/
urcu
/
list.h
diff --git
a/urcu/list.h
b/urcu/list.h
index 7ccb76aeee760f0686155c0de34e568fc49fc50b..82c2ea4b9375855313c5b6cfaa5922415dfdeaea 100644
(file)
--- a/
urcu/list.h
+++ b/
urcu/list.h
@@
-65,12
+65,19
@@
list_add_tail (list_t *newp, list_t *head)
}
}
+/* Remove element from list. */
+static inline void
+__list_del (list_t *prev, list_t *next)
+{
+ next->prev = prev;
+ prev->next = next;
+}
+
/* Remove element from list. */
static inline void
list_del (list_t *elem)
{
/* Remove element from list. */
static inline void
list_del (list_t *elem)
{
- elem->next->prev = elem->prev;
- elem->prev->next = elem->next;
+ __list_del (elem->prev, elem->next);
}
}
This page took
0.0394 seconds
and
4
git commands to generate.