diff options
author | Yuchen Zeng <zyc@google.com> | 2016-05-25 07:18:57 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-05-25 07:18:57 -0700 |
commit | c92fe25af5b29f0cb54b06bdcd768a98d749d7b7 (patch) | |
tree | 0563779b40d17cbe86bf8e153f208b5cfc3be310 /test/cpp/util/proto_reflection_descriptor_database.h | |
parent | 46bf1467c5d070c5ff72a33fb60ef5c5bb45f71c (diff) |
Add mutex for stream in ProtoReflectionDescriptorDatabase, fix headers check
Diffstat (limited to 'test/cpp/util/proto_reflection_descriptor_database.h')
-rw-r--r-- | test/cpp/util/proto_reflection_descriptor_database.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/util/proto_reflection_descriptor_database.h b/test/cpp/util/proto_reflection_descriptor_database.h index 4bb9c21a92..bc25fb0f5c 100644 --- a/test/cpp/util/proto_reflection_descriptor_database.h +++ b/test/cpp/util/proto_reflection_descriptor_database.h @@ -32,6 +32,7 @@ */ #include <memory> +#include <mutex> #include <unordered_map> #include <unordered_set> #include <vector> @@ -98,6 +99,7 @@ class ProtoReflectionDescriptorDatabase std::unordered_set<string> missing_symbols_; std::unordered_map<string, std::unordered_set<int>> missing_extensions_; std::unordered_map<string, std::vector<int>> cached_extension_numbers_; + std::mutex stream_mutex_; google::protobuf::SimpleDescriptorDatabase cached_db_; }; |