From mboxrd@z Thu Jan 1 00:00:00 1970 From: compudj@krystal.dyndns.org (Mathieu Desnoyers) Date: Wed, 8 Jun 2011 19:31:36 -0400 Subject: [ltt-dev] [PATCH userspace-rcu] Add a cds_list_del_init() In-Reply-To: <20110608232900.GA11853@linux.vnet.ibm.com> References: <20110608232900.GA11853@linux.vnet.ibm.com> Message-ID: * Paul E. McKenney (paulmck at linux.vnet.ibm.com) wrote: > Needed by some perfbook example code. > > Signed-off-by: Paul E. McKenney Merged, thanks! Mathieu > > diff --git a/urcu/list.h b/urcu/list.h > index db7685f..ab7a470 100644 > --- 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); > } > > +/* 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) > > _______________________________________________ > ltt-dev mailing list > ltt-dev at lists.casi.polymtl.ca > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev > -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com