// // Copyright 2019 Ettus Research, a National Instruments Brand // // SPDX-License-Identifier: GPL-3.0-or-later // #include #include using namespace uhd::rfnoc; device_id_t uhd::rfnoc::allocate_device_id() { static std::atomic counter{1}; return counter++; }