ReadWriteLock.cc
std::atomic< bool > writing
there is a writing user (there can be at most 1)
Definition: ReadWriteLock.h:55
bool unlockSharedAndSwitchToExclusive()
Definition: ReadWriteLock.cc:109
void updateStats(ReadWriteLockStats &stats) const
adds approximate current stats to the supplied ones
Definition: ReadWriteLock.cc:148
Definition: ReadWriteLock.h:26
bool lockHeaders()
lock for [readable] metadata update or return false
Definition: ReadWriteLock.cc:63
Definition: Store.h:37
bool stopAppendingAndRestoreExclusive()
Definition: ReadWriteLock.cc:131
std::atomic< uint32_t > writeLevel
number of users writing (or trying to write)
Definition: ReadWriteLock.h:63
std::ostream & operator<<(std::ostream &os, const QuestionerId &qid)
Definition: QuestionerId.h:63
void switchExclusiveToShared()
Definition: ReadWriteLock.cc:100
std::atomic< uint32_t > readLevel
number of users reading (or trying to)
Definition: ReadWriteLock.h:62
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