Fix link errors by using inlining
@ -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();
}
@ -6,11 +6,9 @@ use std::collections::BTreeMap;
use std::ptr;
use std::sync::atomic::{AtomicUsize, Ordering};
mod attr;
pub mod attr;
attr::init();
pub fn init() {}
/// The main thread's pthread ID
const MAIN_THREAD_ID: libc::pthread_t = 0;