pub fn create_thread_pre<F, T>(_f: &F) -> Result<ThreadInit, Error>where
    F: FnOnce() -> T,
    F: Send + 'static,
    T: Send + 'static,