blob: bd8af9aec566bd6b1e2f0bac22cbda498a6dbe0d [file] [log] [blame]
[email protected]4156b9a42011-03-10 23:36:161// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]4b559b4d2011-04-14 17:37:145#include "crypto/mac_security_services_lock.h"
[email protected]4156b9a42011-03-10 23:36:166
Sylvain Defresneea6cdd79a2020-09-15 08:49:087#include "base/no_destructor.h"
[email protected]4156b9a42011-03-10 23:36:168#include "base/synchronization/lock.h"
9
[email protected]4b559b4d2011-04-14 17:37:1410namespace crypto {
[email protected]4156b9a42011-03-10 23:36:1611
12base::Lock& GetMacSecurityServicesLock() {
Sylvain Defresneea6cdd79a2020-09-15 08:49:0813 static base::NoDestructor<base::Lock> lock;
14 return *lock;
[email protected]4156b9a42011-03-10 23:36:1615}
16
[email protected]4b559b4d2011-04-14 17:37:1417} // namespace crypto