summaryrefslogtreecommitdiffstats
path: root/base/thread_local.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 20:28:03 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 20:28:03 +0000
commit5db27db7e09cf3f72c68a8ca668b96177c97101f (patch)
tree3cfcb4c2c3fdf7543564e94603f33d640167d25e /base/thread_local.h
parentfe23e9a748e6a1849f22d3d0add4502a3a41604f (diff)
downloadchromium_src-5db27db7e09cf3f72c68a8ca668b96177c97101f.zip
chromium_src-5db27db7e09cf3f72c68a8ca668b96177c97101f.tar.gz
chromium_src-5db27db7e09cf3f72c68a8ca668b96177c97101f.tar.bz2
base: add a thread-safety assertion checker
ThreadAssertions lets us assert that the current thread is allowed to make blocking calls. See the header for more background. This change implements ThreadAssertions but doesn't turn it on for any of Chrome. BUG=59575 Review URL: http://codereview.chromium.org/3824006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread_local.h')
-rw-r--r--base/thread_local.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/thread_local.h b/base/thread_local.h
index 3227c83..075e209 100644
--- a/base/thread_local.h
+++ b/base/thread_local.h
@@ -6,7 +6,7 @@
// sure that this is really the proper solution for what you're trying to
// achieve. Don't prematurely optimize, most likely you can just use a Lock.
//
-// These classes implement a warpper around the platform's TLS storage
+// These classes implement a wrapper around the platform's TLS storage
// mechanism. On construction, they will allocate a TLS slot, and free the
// TLS slot on destruction. No memory management (creation or destruction) is
// handled. This means for uses of ThreadLocalPointer, you must correctly