blob: ade4a3b8f88c352945408d32f2c4a9e472e2420c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//
// Copyright 2019 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#include <uhdlib/rfnoc/device_id.hpp>
#include <atomic>
using namespace uhd::rfnoc;
device_id_t uhd::rfnoc::allocate_device_id()
{
static std::atomic<device_id_t> counter{1};
return counter++;
}
|