diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-04-25 19:33:58 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-04-25 19:33:58 +0200 |
commit | 75cb0b9dd64be0feff5cafc662b6cef76de128ce (patch) | |
tree | d209fe82bef32bedb80dd957f5042fc7eeb0d6e7 /Transceiver52M/device | |
parent | 46324d3597f990526512c46f40a6d763fa86e7aa (diff) |
Move duplicated thread_enable_cancel to CommonLibs
Change-Id: I1a479b59bdda01233273dfa919bd678edbe34708
Diffstat (limited to 'Transceiver52M/device')
-rw-r--r-- | Transceiver52M/device/lms/LMSDevice.cpp | 6 | ||||
-rw-r--r-- | Transceiver52M/device/uhd/UHDDevice.cpp | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp index b924fa7..0cd41d3 100644 --- a/Transceiver52M/device/lms/LMSDevice.cpp +++ b/Transceiver52M/device/lms/LMSDevice.cpp @@ -90,12 +90,6 @@ static void lms_log_callback(int lvl, const char *msg) LOGLV(DLMS, lvl_map[lvl]) << msg; } -static void thread_enable_cancel(bool cancel) -{ - cancel ? pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) : - pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); -} - static void print_range(const char* name, lms_range_t *range) { LOGC(DDEV, INFO) << name << ": Min=" << range->min << " Max=" << range->max diff --git a/Transceiver52M/device/uhd/UHDDevice.cpp b/Transceiver52M/device/uhd/UHDDevice.cpp index 765150f..46284e5 100644 --- a/Transceiver52M/device/uhd/UHDDevice.cpp +++ b/Transceiver52M/device/uhd/UHDDevice.cpp @@ -357,12 +357,6 @@ void uhd_msg_handler(uhd::msg::type_t type, const std::string &msg) } #endif -static void thread_enable_cancel(bool cancel) -{ - cancel ? pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) : - pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); -} - uhd_device::uhd_device(size_t tx_sps, size_t rx_sps, InterfaceType iface, size_t chans, double lo_offset, const std::vector<std::string>& tx_paths, |