// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "time_zone_impl.h" #include <deque> #include <memory> #include <mutex> #include <string> #include <unordered_map> #include <utility> #include "absl/base/config.h" #include "time_zone_fixed.h" namespace absl { ABSL_NAMESPACE_BEGIN namespace time_internal { namespace cctz { namespace { // time_zone::Impls are linked into a map to support fast lookup by name. TimeZoneImplByName; TimeZoneImplByName* time_zone_map = …; // Mutual exclusion for time_zone_map. std::mutex& TimeZoneMutex() { … } } // namespace time_zone time_zone::Impl::UTC() { … } bool time_zone::Impl::LoadTimeZone(const std::string& name, time_zone* tz) { … } void time_zone::Impl::ClearTimeZoneMapTestOnly() { … } time_zone::Impl::Impl() : … { … } time_zone::Impl::Impl(const std::string& name) : … { … } const time_zone::Impl* time_zone::Impl::UTCImpl() { … } } // namespace cctz } // namespace time_internal ABSL_NAMESPACE_END } // namespace absl