[sheepdog] [PATCH v2 2/4] util: introduce a new data type refcnt_t for reference counting
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Wed Jul 10 09:21:03 CEST 2013
At Tue, 9 Jul 2013 16:59:27 +0800,
Liu Yuan wrote:
>
> I don't think this refcnt_dec_return is atomic operatoin. You should rely on the
> atomic_sub_return()...anyway, I am not yet convinced to use wrapper instead of
> atomic helpers.
I'd vote for introducing the wrappers. assert() in refcnt_dec() would
help us to detect a bug.
Thanks,
Kazutaka
More information about the sheepdog
mailing list