From b211bbf3c7594e14aefa2899dc49e2f180fc20ef Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 20 Jul 2018 20:43:13 -0700 Subject: C API: Fix incorrectly declared lock --- host/lib/usrp/usrp_c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/usrp_c.cpp') diff --git a/host/lib/usrp/usrp_c.cpp b/host/lib/usrp/usrp_c.cpp index a7dc224c9..1eb52d9af 100644 --- a/host/lib/usrp/usrp_c.cpp +++ b/host/lib/usrp/usrp_c.cpp @@ -85,7 +85,7 @@ UHD_SINGLETON_FCN(usrp_ptrs, get_usrp_ptrs); static boost::mutex _rx_streamer_make_mutex; uhd_error uhd_rx_streamer_make(uhd_rx_streamer_handle* h){ UHD_SAFE_C( - boost::mutex::scoped_lock(_rx_streamer_make_mutex); + boost::mutex::scoped_lock lock(_rx_streamer_make_mutex); (*h) = new uhd_rx_streamer; ) } -- cgit v1.2.3