| 1561 | } |
| 1562 | |
| 1563 | void redisObject::SetFExpires(bool fExpire) |
| 1564 | { |
| 1565 | serverAssert(this->refcount != OBJ_SHARED_REFCOUNT || fExpire == FExpires()); |
| 1566 | if (fExpire) |
| 1567 | this->refcount.fetch_or(1U << 31, std::memory_order_relaxed); |
| 1568 | else |
| 1569 | this->refcount.fetch_and(~(1U << 31), std::memory_order_relaxed); |
| 1570 | } |
| 1571 | |
| 1572 | void redisObject::setrefcount(unsigned ref) |
| 1573 | { |
no outgoing calls
no test coverage detected