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

Unified Diff: ipc/ipc_sync_message.cc

Issue 9415039: Add base::StaticAtomicSequenceNumber. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update Created 8 years, 10 months 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
« no previous file with comments | « chrome_frame/cfproxy_support.cc ('k') | media/base/media_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_sync_message.cc
diff --git a/ipc/ipc_sync_message.cc b/ipc/ipc_sync_message.cc
index 875f97b1fec167162f83a5919f7fe8e4cf91b534..f83c40747177e6e3a679cf9ed7ed1b0779847aba 100644
--- a/ipc/ipc_sync_message.cc
+++ b/ipc/ipc_sync_message.cc
@@ -25,17 +25,17 @@ struct WaitableEventLazyInstanceTraits
}
};
-static base::LazyInstance<base::WaitableEvent, WaitableEventLazyInstanceTraits>
+base::LazyInstance<base::WaitableEvent, WaitableEventLazyInstanceTraits>
dummy_event = LAZY_INSTANCE_INITIALIZER;
-}
+base::StaticAtomicSequenceNumber g_next_id;
+
+} // namespace
namespace IPC {
#define kSyncMessageHeaderSize 4
-static base::AtomicSequenceNumber g_next_id(base::LINKER_INITIALIZED);
-
SyncMessage::SyncMessage(
int32 routing_id,
uint32 type,
« no previous file with comments | « chrome_frame/cfproxy_support.cc ('k') | media/base/media_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698