iceoryx2_bb_concurrency/
lib.rs

1// Copyright (c) 2025 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#![cfg_attr(not(feature = "std"), no_std)]
14
15pub mod atomic;
16pub mod cell;
17pub mod spin_lock;
18
19#[cfg(not(feature = "std"))]
20pub use iceoryx2_pal_concurrency_sync::once::Once;
21#[cfg(feature = "std")]
22pub use std::sync::Once;