Commit graph

8 commits

Author SHA1 Message Date
Lane Kolbly
5802a362f8 uhd: Replace include guards with pragma once
Pragma once is the more modern version of include guards, eliminating
any potential problems with mistyping include guards. Let's use those.
2020-04-08 15:16:06 -05:00
Brent Stapleton
708840002e uhd: fixing MSVC warnings
Small changes to remove various compiler warnings found in MSVC
- Adding uhd::narrow_cast to verious spots
- wavetable.hpp: all floats literals in the wavetable.
- paths_test: unnecessary character escape
- replay example: remove unreferenced noc_id
- adfXXXX: Fixing qualifiers to match between parent and derived
  classes
- rpc, block_id: Removing unused name in try...catch
2020-01-09 09:18:25 -08:00
Brent Stapleton
97bc15a0de rpc: Applying clang formatting 2020-01-09 09:18:25 -08:00
Mark Meserve
1558480a35 rpc: add exception when client constructor fails 2019-10-15 08:13:45 -07:00
Mark Meserve
eee4d80806 rpc: convert client to sptr 2019-10-15 08:13:45 -07:00
Trung Tran
a8ac2016ee rpc,mpmd: replace all set_timeout() to new api
Using new rpc client new API that ensure atomic setting of timeout on
each rpc call.
2019-01-14 09:43:56 -08:00
Trung Tran
dceb0aef40 utils:rpc: set rpc timeout during rpc call
The current implementation of the UHD RPC client has a timeout that is
being accessed non-atomically. Many calls follow the pattern:
1. set_timeout(value)
2. request_rpc()
3. set_timeout(default)
which is not atomic. Other concurrent calls on the same rpc client may
change the timeout value; leads to unexpected behavior

These new set of function will, instead, handle
setting and re-setting the timeout atomically in the RPC request.
2019-01-14 09:43:56 -08:00
Martin Braun
6652eb4a03 uhd: Move internal headers to uhdlib/
To avoid the proliferation of additional include directories and
multiple ways of including project-local headers, we now default to
moving all headers that are used across UHD into the uhdlib/
subdirectory.

Some #include statements were also reordered as they were modified for
closer compliance with the coding guidelines.

Internal cpp source files should now include files like this:

    #include <uhdlib/rfnoc/ctrl_iface.hpp>

Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
2018-03-14 15:17:44 -07:00
Renamed from host/lib/utils/rpc.hpp (Browse further)