summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/logger.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-04-10 17:40:11 +0100
committerMarcus Müller <marcus@hostalia.de>2020-04-11 01:41:39 +0200
commitb5e8a552c09a1b9a1397e731cc6f54d427df9a67 (patch)
treedc60d92c7f53d5d15cbf42d2c5a2623a557eb7ca /gnuradio-runtime/include/gnuradio/logger.h
parent616879745ce5d61e6acd54ad84d60359a739a27d (diff)
runtime: Remove most manual memory management
The remaining ones: * `pmt_pool.cc`, which is a memory allocator so that makes sense * the tricky and aptly named `sptr_magic.cc`.
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/logger.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/logger.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-runtime/include/gnuradio/logger.h b/gnuradio-runtime/include/gnuradio/logger.h
index 595052de38..f2d053c084 100644
--- a/gnuradio-runtime/include/gnuradio/logger.h
+++ b/gnuradio-runtime/include/gnuradio/logger.h
@@ -37,6 +37,7 @@ typedef int mode_t;
#include <boost/format.hpp>
#include <boost/thread.hpp>
#include <iostream>
+#include <memory>
namespace gr {
@@ -302,8 +303,8 @@ private:
/*! \brief Period (seconds) over which watcher thread checks config file for changes
*/
unsigned int watch_period;
- /*! \brief Pointer to watch thread for config file changes */
- boost::thread* watch_thread;
+ /*! \brief watch thread for config file changes */
+ std::unique_ptr<boost::thread> watch_thread;
/*! \brief Watcher thread method
* /param filename Name of configuration file