diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-03-01 19:44:46 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-03-01 19:44:46 -0800 |
commit | 0a25cfe69d3c6f04d3d0a779549f126731aa4964 (patch) | |
tree | 42dbbc9203876a56c38abdd1e57952a03c384073 /src/google/protobuf/arena.h | |
parent | b25caa5c0acf3f4f9f8a32fdb9105701f3909723 (diff) | |
download | protobuf-0a25cfe69d3c6f04d3d0a779549f126731aa4964.tar.gz protobuf-0a25cfe69d3c6f04d3d0a779549f126731aa4964.tar.bz2 protobuf-0a25cfe69d3c6f04d3d0a779549f126731aa4964.zip |
Use portable GOOGLE_PROTOBUF_THREAD_LOCAL instead of __thread.
Change-Id: Iaa75f8333541bc378bea699e7f147c7f17b652ad
Diffstat (limited to 'src/google/protobuf/arena.h')
-rw-r--r-- | src/google/protobuf/arena.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index a83a4fbf..bb15e80c 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -374,7 +374,7 @@ class LIBPROTOBUF_EXPORT Arena { // wrap them in static functions. static ThreadCache& thread_cache(); #else - static __thread ThreadCache thread_cache_; + static GOOGLE_THREAD_LOCAL ThreadCache thread_cache_; static ThreadCache& thread_cache() { return thread_cache_; } #endif |