pub fn next_adapter_id() -> usize {
    NEXT_ADAPTER_ID.fetch_add(1, Ordering::Relaxed)
}
If you use this function, you must ensure that only one adapter at a time
has a given ID.
platforms/atspi-common/src/adapter.rs