summaryrefslogtreecommitdiff
path: root/lib/atomlist.h
AgeCommit message (Collapse)Author
2021-10-05lib: fix spelling nits in more lib filesewlumpkin
Signed-off-by: ewlumpkin <ewlumpkin@gmail.com>
2021-03-17*: require semicolon after DEFINE_<typesafe...>David Lamparter
Again, see previous commits. Signed-off-by: David Lamparter <equinox@diac24.net>
2020-04-22lib, zebra: add missing extern "C" {} blocks to new header filesRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-04-21lib/atomlist: make C++ compatibleDavid Lamparter
... by using `atomic_atomptr_t`. Other ideas seemed worse. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-07-31lib: Impelement the `*_del` list API.Stephen Worley
The new list api did not implement the `*_del` endpoint as it was described in the docs here: http://docs.frrouting.org/projects/dev-guide/en/latest/lists.html#c.Z_del This patch implements the endpoints to return the object deleted if found, otherwise NULL for all but the atomic lists. The atomic list `*_del` code is marked as TODO and will remain undefined for now. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
2019-05-21lib: add missing atomlist_init/finiDavid Lamparter
Only noticed this when trying to add atomlists to the typesafe datastructure tests... the atomic-specific test_atomlist doesn't use init/fini :/ Signed-off-by: David Lamparter <equinox@diac24.net>
2019-04-27lib: atomlist & atomsortDavid Lamparter
These two are lock-free linked list implementations, the plain one is primarily intended for queues while the sorted one is for general data storage. Signed-off-by: David Lamparter <equinox@diac24.net>