basic: document that people shouldn't use refcnt.h without reason
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2015 19:04:38 +0000 (21:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2015 19:04:38 +0000 (21:04 +0200)
commit57de20dd8fcf156ce8071810f0be8a22786bb1c0
treed2aa10e1564535d9222a59cff5a0d35098f5620c
parentbd91b83e578165b4c242c9f34ff1d3be8fb3ab22
basic: document that people shouldn't use refcnt.h without reason

refcnt.h only exists for cases where objects are simultaneously handled
by different threads. Otherwise it should not be used. The only case
where this applies is sd_bus, really, and pretty much none of our APIs,
since we do not claim thread-safety for them.
src/basic/refcnt.h