Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refcount: Fix usage in c++ | Samuel Thibault | 2016-11-27 | 1 | -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 primitives | Justus Winter | 2016-04-27 | 1 | -16/+25 |
| | | | | * libshouldbeinlibc/refcount.h: Use 'assert_backtrace'. | ||||
* | libshouldbeinlibc: move the reference counting primitives here | Justus Winter | 2014-12-01 | 1 | -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}'. |