pub fn wait_until_generic<F1, F2>( word: &AtomicI32, attempt: F1, mark_long: F2, long: c_int, )where F1: Fn(&AtomicI32) -> AttemptStatus, F2: Fn(&AtomicI32) -> AttemptStatus,