MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / getrefcount

Method getrefcount

src/server.h:989–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987
988 void setrefcount(unsigned ref);
989 unsigned getrefcount(std::memory_order order = std::memory_order_relaxed) const { return (refcount.load(order) & ~(1U << 31)); }
990 void addref() const { refcount.fetch_add(1, std::memory_order_relaxed); }
991 unsigned release() const { return refcount.fetch_sub(1, std::memory_order_seq_cst) & ~(1U << 31); }
992} robj;

Callers 15

dbOverwriteCoreMethod · 0.80
dbUnshareStringValueFunction · 0.80
setExpireFunction · 0.80
setExpireMethod · 0.80
ensureMethod · 0.80
asyncDeleteMethod · 0.80
freeObjAsyncFunction · 0.80
makeObjectSharedFunction · 0.80
incrRefCountFunction · 0.80
decrRefCountFunction · 0.80
tryObjectEncodingFunction · 0.80
objectCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected