selinux/
sync.rs

1// Copyright 2024 The Fuchsia 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
5/// `Mutex` type exercised in the `selinux` crate when built for integration with starnix.
6#[cfg(feature = "selinux_starnix")]
7pub(super) use starnix_sync::Mutex;
8
9/// `Mutex` type exercised in the `selinux` crate when built for non-fuchsia platforms.
10#[cfg(not(feature = "selinux_starnix"))]
11pub(super) use parking_lot::Mutex;