Re: [PATCH 5/7] include: add lock-less reference counting primitives
At Tue, 13 May 2014 21:02:54 +0200, Justus Winter wrote: > + assert (r != UINT_MAX); How about 'assert(r != UINT_MAX || !"refcount underflowed!")'. Since assert (r != UINT_MAX) requires understanding the use of an unsigned int.
Re: [PATCH 5/7] include: add lock-less reference counting primitives
Justus Winter, le Tue 13 May 2014 21:02:54 +0200, a écrit : > * include/refcount.h: New file. Ack. > --- > include/refcount.h | 193 > + > 1 file changed, 193 insertions(+) > create mode 100644 include/refcount.h > > diff --git a/include/ref