File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ BCLog::Logger& LogInstance()
22
22
* access the logger. When the shutdown sequence is fully audited and tested,
23
23
* explicit destruction of these objects can be implemented by changing this
24
24
* from a raw pointer to a std::unique_ptr.
25
- * Since the destructor is never called, the logger and all its members must
26
- * have a trivial destructor .
25
+ * Since the ~Logger() destructor is never called, the Logger class and all
26
+ * its subclasses must have implicitly-defined destructors .
27
27
*
28
28
* This method of initialization was originally introduced in
29
29
* ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ struct LockData {
95
95
LockData& GetLockData () {
96
96
// This approach guarantees that the object is not destroyed until after its last use.
97
97
// The operating system automatically reclaims all the memory in a program's heap when that program exits.
98
+ // Since the ~LockData() destructor is never called, the LockData class and all
99
+ // its subclasses must have implicitly-defined destructors.
98
100
static LockData& lock_data = *new LockData ();
99
101
return lock_data;
100
102
}
You can’t perform that action at this time.
0 commit comments