use super::*; // PTHREAD_ONCE_INIT /// See . #[unsafe(no_mangle)] pub unsafe extern "C" fn pthread_once( once: *mut pthread_once_t, constructor: extern "C" fn(), ) -> c_int { let once = unsafe { &*once.cast::() }; // TODO: Cancellation points once.call_once(|| constructor()); //crate::sync::once::call_once_generic(&once.inner, || constructor()); 0 } pub(crate) type RlctOnce = crate::sync::Once<()>;