diff options
Diffstat (limited to 'lib/bladerf/bladerf_common.h')
-rw-r--r-- | lib/bladerf/bladerf_common.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/bladerf/bladerf_common.h b/lib/bladerf/bladerf_common.h index 741b1e7..51dedc9 100644 --- a/lib/bladerf/bladerf_common.h +++ b/lib/bladerf/bladerf_common.h @@ -23,11 +23,12 @@ #include <list> #include <map> -#include <memory> -#include <mutex> #include <string> #include <vector> +#include <boost/thread/mutex.hpp> +#include <boost/weak_ptr.hpp> + #include <libbladeRF.h> #include "osmosdr/ranges.h" @@ -42,7 +43,7 @@ typedef ptrdiff_t ssize_t; #define BLADERF_DEBUG_ENABLE -typedef std::shared_ptr<struct bladerf> bladerf_sptr; +typedef boost::shared_ptr<struct bladerf> bladerf_sptr; /* Identification of the bladeRF hardware in use */ typedef enum { @@ -286,8 +287,8 @@ private: /***************************************************************************** * Private members ****************************************************************************/ - static std::mutex _devs_mutex; /**< mutex for access to _devs */ - static std::list<std::weak_ptr<struct bladerf>> _devs; /**< dev cache */ + static boost::mutex _devs_mutex; /**< mutex for access to _devs */ + static std::list<boost::weak_ptr<struct bladerf> > _devs; /**< dev cache */ }; #endif |