diff --git a/src/lib.rs b/src/lib.rs index 6d30dc5..1b0a943 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,11 +15,13 @@ mod thread_keys; /// The call doesn't need to execute, just exist. /// /// See https://github.com/rust-lang/rust/issues/47384 +#[inline(always)] pub fn init() { condvar::init(); misc::init(); mutex::init(); rwlock::init(); thread::init(); + thread::attr::init(); thread_keys::init(); } diff --git a/src/thread.rs b/src/thread.rs index c7f4d55..ff973b1 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -6,11 +6,9 @@ use std::collections::BTreeMap; use std::ptr; use std::sync::atomic::{AtomicUsize, Ordering}; -mod attr; +pub mod attr; -pub fn init() { - attr::init(); -} +pub fn init() {} /// The main thread's pthread ID const MAIN_THREAD_ID: libc::pthread_t = 0;