Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
0b30eb8c
Commit
0b30eb8c
authored
Dec 13, 2012
by
xiaofeng@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the name of thread safety macros.
parent
5d701498
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
atomicops.h
src/google/protobuf/stubs/atomicops.h
+2
-2
atomicops_internals_x86_msvc.cc
src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
+2
-2
No files found.
src/google/protobuf/stubs/atomicops.h
View file @
0b30eb8c
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
#define GOOGLE_PROTOBUF_ATOMICOPS_H_
#define GOOGLE_PROTOBUF_ATOMICOPS_H_
// Don't include this file for people not concerned about thread safety.
// Don't include this file for people not concerned about thread safety.
#ifndef GOOGLE_PROTOBUF_NO_THREADSAFETY
#ifndef GOOGLE_PROTOBUF_NO_THREAD
_
SAFETY
#include <google/protobuf/stubs/platform_macros.h>
#include <google/protobuf/stubs/platform_macros.h>
...
@@ -197,6 +197,6 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
...
@@ -197,6 +197,6 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#undef GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#undef GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#endif // GOOGLE_PROTOBUF_NO_THREADSAFETY
#endif // GOOGLE_PROTOBUF_NO_THREAD
_
SAFETY
#endif // GOOGLE_PROTOBUF_ATOMICOPS_H_
#endif // GOOGLE_PROTOBUF_ATOMICOPS_H_
src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
View file @
0b30eb8c
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
// Therefore we move the code depending on windows.h to this separate cc file.
// Therefore we move the code depending on windows.h to this separate cc file.
// Don't compile this file for people not concerned about thread safety.
// Don't compile this file for people not concerned about thread safety.
#ifndef GOOGLE_PROTOBUF_NO_THREADSAFETY
#ifndef GOOGLE_PROTOBUF_NO_THREAD
_
SAFETY
#include <google/protobuf/stubs/atomicops.h>
#include <google/protobuf/stubs/atomicops.h>
...
@@ -109,4 +109,4 @@ Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr,
...
@@ -109,4 +109,4 @@ Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr,
}
// namespace google
}
// namespace google
#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_X86_MSVC_H_
#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_X86_MSVC_H_
#endif // GOOGLE_PROTOBUF_NO_THREADSAFETY
#endif // GOOGLE_PROTOBUF_NO_THREAD
_
SAFETY
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment