diff options
Diffstat (limited to 'absl/synchronization')
-rw-r--r-- | absl/synchronization/internal/graphcycles.cc | 3 | ||||
-rw-r--r-- | absl/synchronization/mutex.cc | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/absl/synchronization/internal/graphcycles.cc b/absl/synchronization/internal/graphcycles.cc index 9bc9c8a0f00d..28ad172c01a2 100644 --- a/absl/synchronization/internal/graphcycles.cc +++ b/absl/synchronization/internal/graphcycles.cc @@ -56,8 +56,7 @@ static base_internal::LowLevelAlloc::Arena* arena; static void InitArenaIfNecessary() { arena_mu.Lock(); if (arena == nullptr) { - arena = base_internal::LowLevelAlloc::NewArena( - 0, base_internal::LowLevelAlloc::DefaultArena()); + arena = base_internal::LowLevelAlloc::NewArena(0); } arena_mu.Unlock(); } diff --git a/absl/synchronization/mutex.cc b/absl/synchronization/mutex.cc index b2aa743977ac..06a058cf710b 100644 --- a/absl/synchronization/mutex.cc +++ b/absl/synchronization/mutex.cc @@ -1,3 +1,17 @@ +// Copyright 2017 The Abseil Authors. +// +// 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 +// +// http://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 "absl/synchronization/mutex.h" #ifdef _WIN32 |