Skip to content

Commit

Permalink
mavconn: Cleanup boost threads.
Browse files Browse the repository at this point in the history
I will use C++11 standard libs.
Issue #72.
  • Loading branch information
vooon committed Aug 1, 2014
1 parent 9862962 commit 7311b71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions include/mavros/mavconn_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@
#include <boost/signals2.hpp>
#include <boost/system/system_error.hpp>

// cleanup @{
#include <boost/thread/thread.hpp>
#include <boost/thread/recursive_mutex.hpp>
// @}

#include <set>
#include <mutex>
#include <thread>
#include <memory>
#include <sstream>
#include <mavros/mavconn_mavlink.h>

namespace mavconn {
Expand All @@ -60,7 +56,7 @@ class DeviceError : public std::exception {
* @breif Construct error with description.
*/
explicit DeviceError(const char *module, const char *description) {
std::stringstream ss;
std::ostringstream ss;
ss << "DeviceError:" << module << ": " << description;
e_what_ = ss.str();
}
Expand Down
3 changes: 3 additions & 0 deletions include/mavros/mavros_uas.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include <tf/transform_datatypes.h>
#include <mavros/mavconn_interface.h>

// TODO: replace with C++11
#include <boost/thread/recursive_mutex.hpp>

namespace mavplugin {

/**
Expand Down

0 comments on commit 7311b71

Please sign in to comment.