|
Squid Web Cache master
|
Public Member Functions | |
| LoggingSectionGuard () | |
| ~LoggingSectionGuard () | |
Static Public Member Functions | |
| static bool | Busy () |
| whether new debugs() messages must be queued | |
Static Private Attributes | |
| static size_t | LoggingConcurrencyLevel = 0 |
| the current number of protected callers | |
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.
| LoggingSectionGuard::LoggingSectionGuard | ( | ) |
Definition at line 419 of file debug.cc.
References LoggingConcurrencyLevel.
| LoggingSectionGuard::~LoggingSectionGuard | ( | ) |
Definition at line 424 of file debug.cc.
References LoggingConcurrencyLevel, and Debug::LogWaitingForIdle().
|
inlinestatic |
Definition at line 336 of file debug.cc.
References LoggingConcurrencyLevel.
Referenced by Debug::Start().
|
staticprivate |
Definition at line 340 of file debug.cc.
Referenced by LoggingSectionGuard(), ~LoggingSectionGuard(), and Busy().