projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for __linux__ before including syscall.h
[urcu.git]
/
urcu
/
list.h
diff --git
a/urcu/list.h
b/urcu/list.h
index db7685fca289b5c3d48881a51fdfc570283d9dfc..ab7a470a8d0f245541ce7b853b72875784ad511e 100644
(file)
--- a/
urcu/list.h
+++ b/
urcu/list.h
@@
-80,6
+80,14
@@
cds_list_del (struct cds_list_head *elem)
__cds_list_del (elem->prev, elem->next);
}
__cds_list_del (elem->prev, elem->next);
}
+/* Remove element from list, initializing the element's list pointers. */
+static inline void
+cds_list_del_init (struct cds_list_head *elem)
+{
+ cds_list_del(elem);
+ CDS_INIT_LIST_HEAD(elem);
+}
+
/* delete from list, add to another list as head */
static inline void
cds_list_move (struct cds_list_head *elem, struct cds_list_head *head)
/* delete from list, add to another list as head */
static inline void
cds_list_move (struct cds_list_head *elem, struct cds_list_head *head)
This page took
0.02383 seconds
and
4
git commands to generate.