[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 1 | // 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] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 5 | #include "crypto/mac_security_services_lock.h" |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 6 | |
Sylvain Defresne | ea6cdd79a | 2020-09-15 08:49:08 | [diff] [blame] | 7 | #include "base/no_destructor.h" |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 8 | #include "base/synchronization/lock.h" |
9 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 10 | namespace crypto { |
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 11 | |
12 | base::Lock& GetMacSecurityServicesLock() { | ||||
Sylvain Defresne | ea6cdd79a | 2020-09-15 08:49:08 | [diff] [blame] | 13 | static base::NoDestructor<base::Lock> lock; |
14 | return *lock; | ||||
[email protected] | 4156b9a4 | 2011-03-10 23:36:16 | [diff] [blame] | 15 | } |
16 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 17 | } // namespace crypto |