diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 20:08:45 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 20:08:45 +0000 |
commit | 2c3863845eeea62e1012efb177fa415bf639cc5d (patch) | |
tree | 4d47c69b300994216234e7bb44b3a3d31639ea0c /base/stats_table.cc | |
parent | f29acf538815f1d71638ac9db8798998a113955f (diff) | |
download | chromium_src-2c3863845eeea62e1012efb177fa415bf639cc5d.zip chromium_src-2c3863845eeea62e1012efb177fa415bf639cc5d.tar.gz chromium_src-2c3863845eeea62e1012efb177fa415bf639cc5d.tar.bz2 |
Switch from the benighted PlatformThread to the shiny SimpleThread
Also add a comment to explain the strange tls gyrations in
SlotReturnFunction.
Review URL: http://codereview.chromium.org/8972
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/stats_table.cc')
-rw-r--r-- | base/stats_table.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/stats_table.cc b/base/stats_table.cc index 47bc533..061de0d 100644 --- a/base/stats_table.cc +++ b/base/stats_table.cc @@ -345,6 +345,9 @@ void StatsTable::UnregisterThread(StatsTableTLSData* data) { } void StatsTable::SlotReturnFunction(void* data) { + // This is called by the TLS destructor, which on some platforms has + // already cleared the TLS info, so use the tls_data argument + // rather than trying to fetch it ourselves. StatsTableTLSData* tls_data = static_cast<StatsTableTLSData*>(data); if (tls_data) { DCHECK(tls_data->table); |