Public Member Functions | |
LoggingSectionGuard () | |
~LoggingSectionGuard () | |
Static Public Member Functions | |
static bool | Busy () |
whether new debugs() messages must be queued More... | |
Static Private Attributes | |
static size_t | LoggingConcurrencyLevel = 0 |
the current number of protected callers More... | |
Detailed Description
Maintains the number of code paths on the current call stack that need protection from new debugs() calls. Squid cannot block re-entrant debugs() calls, but the high-level debugs() handling code queues re-entrant logging attempts when Busy() instead of letting them through to sensitive code.
Constructor & Destructor Documentation
◆ LoggingSectionGuard()
LoggingSectionGuard::LoggingSectionGuard | ( | ) |
Definition at line 419 of file debug.cc.
References LoggingConcurrencyLevel.
◆ ~LoggingSectionGuard()
LoggingSectionGuard::~LoggingSectionGuard | ( | ) |
Definition at line 424 of file debug.cc.
References LoggingConcurrencyLevel, and Debug::LogWaitingForIdle().
Member Function Documentation
◆ Busy()
|
inlinestatic |
Definition at line 336 of file debug.cc.
References LoggingConcurrencyLevel.
Referenced by Debug::Start().
Member Data Documentation
◆ LoggingConcurrencyLevel
|
staticprivate |
Definition at line 340 of file debug.cc.
Referenced by Busy(), LoggingSectionGuard(), and ~LoggingSectionGuard().
The documentation for this class was generated from the following file:
- src/debug/debug.cc
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