diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 13:57:21 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 13:57:21 +0000 |
commit | 1cf1b34a696fcda6d8f84a31e372c0d85e7ef1ec (patch) | |
tree | bfa2162524dd6e2d2162410a7701801295c8fd64 /base/at_exit.h | |
parent | 9e950bddb6d7f49634757d373e3f13a7d0425ae5 (diff) | |
download | chromium_src-1cf1b34a696fcda6d8f84a31e372c0d85e7ef1ec.zip chromium_src-1cf1b34a696fcda6d8f84a31e372c0d85e7ef1ec.tar.gz chromium_src-1cf1b34a696fcda6d8f84a31e372c0d85e7ef1ec.tar.bz2 |
Avoid a global std::stack. Instead embed a next pointer in the managers.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/at_exit.h')
-rw-r--r-- | base/at_exit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/at_exit.h b/base/at_exit.h index 38e7b54..9ff41c9 100644 --- a/base/at_exit.h +++ b/base/at_exit.h @@ -79,6 +79,8 @@ class AtExitManager { private: Lock lock_; std::stack<AtExitCallbackType> stack_; + AtExitManager* next_manager_; // Stack of managers to allow shadowing. + DISALLOW_COPY_AND_ASSIGN(AtExitManager); }; |