Split the __thread_local_inner macro to make it more readable. Also move everything to crate::sys::common::thread_local. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
18 lines
709 B
Rust
18 lines
709 B
Rust
// This module contains code that is shared between all platforms, mostly utility or fallback code.
|
|
// This explicitly does not include code that is shared between only a few platforms,
|
|
// such as when reusing an implementation from `unix` or `unsupported`.
|
|
// In those cases the desired code should be included directly using the #[path] attribute,
|
|
// not moved to this module.
|
|
//
|
|
// Currently `sys_common` contains a lot of code that should live in this module,
|
|
// ideally `sys_common` would only contain platform-independent abstractions on top of `sys`.
|
|
// Progress on this is tracked in #84187.
|
|
|
|
#![allow(dead_code)]
|
|
|
|
pub mod alloc;
|
|
pub mod small_c_string;
|
|
pub mod thread_local;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|