aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/refcount.h
Commit message (Collapse)AuthorAgeFilesLines
* refcount: Fix usage in c++Samuel Thibault2016-11-271-7/+11
| | | | | | | | | | g++ still doens't support non-trivial named initializers (sigh) * libshouldbeinlibc/refcount.h (REFCOUNT_REFERENCES): New macro. (refcounts_init, refcounts_unsafe_ref, refcounts_deref, refcounts_promote, refcounts_demote, refcounts_unsafe_ref_weak, refcounts_deref_weak): Use REFCOUNT_REFERENCES instead of explicit initializer.
* libshouldbeinlibc: use the new assert in the refcount primitivesJustus Winter2016-04-271-16/+25
| | | | * libshouldbeinlibc/refcount.h: Use 'assert_backtrace'.
* libshouldbeinlibc: move the reference counting primitives hereJustus Winter2014-12-011-0/+326
Declare all functions `extern inline' instead of `static inline'. This allows us to use them in functions declared as `extern inline'. * libshouldbeinlibc/refcount.h: Move here, and declare all functions `extern inline'. * libshouldbeinlibc/refcount.c: And define the functions here. * libshouldbeinlibc/Makefile: Add `refcount.{c,h}'.