aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/USRPTime.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-03 18:12:30 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-04-10 22:27:21 +0200
commit2bc4e35410bef91d1c4b0135832828612f540d26 (patch)
tree8ab2b0bba29c1e029d5563e078ebde6dcc49553f /src/output/USRPTime.h
parentb20358ac28feb93d8196d7a6106aa77ca8592908 (diff)
downloaddabmod-2bc4e35410bef91d1c4b0135832828612f540d26.tar.gz
dabmod-2bc4e35410bef91d1c4b0135832828612f540d26.tar.bz2
dabmod-2bc4e35410bef91d1c4b0135832828612f540d26.zip
Use std::future instead of boost::packaged_task in USRPTime
Diffstat (limited to 'src/output/USRPTime.h')
-rw-r--r--src/output/USRPTime.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/USRPTime.h b/src/output/USRPTime.h
index 7527f21..70e55ae 100644
--- a/src/output/USRPTime.h
+++ b/src/output/USRPTime.h
@@ -42,6 +42,7 @@ DESCRIPTION:
#include <memory>
#include <string>
#include <atomic>
+#include <future>
#include "Log.h"
#include "output/SDR.h"
@@ -96,9 +97,7 @@ class USRPTime {
using timepoint_t = std::chrono::time_point<std::chrono::steady_clock>;
timepoint_t time_last_check;
- boost::packaged_task<bool> gps_fix_pt;
- boost::unique_future<bool> gps_fix_future;
- boost::thread gps_fix_task;
+ std::future<bool> gps_fix_future;
// Returns true if we want to check for the gps_timelock sensor
bool gpsfix_needs_check(void) const;