diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 12:07:19 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-13 12:07:19 +0000 |
commit | 8a8443ffbbf0b31a2feaa843d253ede348bd9abd (patch) | |
tree | 06bee987425255252e4d1530c0aadb4880160b96 /ipc/ipc_sync_message.cc | |
parent | 62308c2a12a7d804203cea272abfdd539d65a1dc (diff) | |
download | chromium_src-8a8443ffbbf0b31a2feaa843d253ede348bd9abd.zip chromium_src-8a8443ffbbf0b31a2feaa843d253ede348bd9abd.tar.gz chromium_src-8a8443ffbbf0b31a2feaa843d253ede348bd9abd.tar.bz2 |
Add base::StaticAtomicSequenceNumber.
This patch also replaces the global AtomicSequenceNumber variables with
StaticAtomicSequenceNumber in order to remove static initializers.
BUG=94925
Review URL: http://codereview.chromium.org/9415039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_sync_message.cc')
-rw-r--r-- | ipc/ipc_sync_message.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/ipc_sync_message.cc b/ipc/ipc_sync_message.cc index eb0a917..9e3acf8 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, |