| 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; |
no outgoing calls
no test coverage detected