Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3270)

Unified Diff: base/threading/platform_thread_posix.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix CrOS Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/threading/platform_thread_posix.cc
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc
index 55b3f69a204f7b0d508df5febd0d25f89c238b87..a975694c9ae6b77eb93761c1d9c17e285e5277b7 100644
--- a/base/threading/platform_thread_posix.cc
+++ b/base/threading/platform_thread_posix.cc
@@ -43,7 +43,7 @@ namespace {
// Mac name code is in in platform_thread_mac.mm.
LazyInstance<ThreadLocalPointer<char>,
LeakyLazyInstanceTraits<ThreadLocalPointer<char> > >
- current_thread_name(LINKER_INITIALIZED);
+ current_thread_name = LINKER_ZERO_INITIALIZED;
#endif
struct ThreadParams {

Powered by Google App Engine
This is Rietveld 408576698