LockingPointer.h
Definition: HardFun.h:16
const SelfType & operator=(const SelfType &o)
Definition: LockingPointer.h:80
HardFun< bool, const void *, nilFunction > NilFunctor
Definition: LockingPointer.h:37
T * release()
Forget the raw pointer without unlocking it. Become a nil pointer.
Definition: LockingPointer.h:122
bool operator==(const SelfType &o) const
Definition: LockingPointer.h:96
void reset()
Forget the raw pointer - unlock if any value was set. Become a nil pointer.
Definition: LockingPointer.h:119
Security::LockingPointer< T, UnLocker, Locker > SelfType
a helper label to simplify this objects API definitions below
Definition: LockingPointer.h:54
void lock(T *t)
The lock() method increments Object's reference counter.
Definition: LockingPointer.h:130
constexpr LockingPointer(std::nullptr_t)
constructs a nil smart pointer from nullptr
Definition: LockingPointer.h:60
~LockingPointer()
use the custom UnLocker to unlock any value still stored.
Definition: LockingPointer.h:74
LockingPointer(const SelfType &o)
Definition: LockingPointer.h:77
bool operator!=(const SelfType &o) const
Definition: LockingPointer.h:97
void resetWithoutLocking(T *t)
Reset raw pointer - unlock any previous one and save new one without locking.
Definition: LockingPointer.h:106
Definition: LockingPointer.h:50
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products