fn has_writers_waiting(state: u32) -> bool