diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2015-10-15 16:19:27 -0700 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2015-10-15 16:19:27 -0700 |
commit | c41a7fa386a467ba76d5f09f390cb62a1bfa7282 (patch) | |
tree | 3f458325c74af227b5745ce5390624f8fc94f638 /host/lib/utils/msg.cpp | |
parent | 09a69b22ae41ca6b9935508d523ae88df58301f3 (diff) | |
parent | eb2f57a6241ce04a3d89c5f41557658387440c3f (diff) | |
download | uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.tar.gz uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.tar.bz2 uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.zip |
Merge branch 'master' into x300/dram
Diffstat (limited to 'host/lib/utils/msg.cpp')
-rw-r--r-- | host/lib/utils/msg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/utils/msg.cpp b/host/lib/utils/msg.cpp index de98ada64..95879a116 100644 --- a/host/lib/utils/msg.cpp +++ b/host/lib/utils/msg.cpp @@ -79,6 +79,8 @@ void uhd::msg::register_handler(const handler_t &handler){ } static void default_msg_handler(uhd::msg::type_t type, const std::string &msg){ + static boost::mutex msg_mutex; + boost::mutex::scoped_lock lock(msg_mutex); switch(type){ case uhd::msg::fastpath: std::cerr << msg << std::flush; |