feat:replace boost library with C++11 std library

This commit is contained in:
Livox-SDK
2020-04-01 20:53:55 +08:00
parent 6d06233944
commit d3258bbd97
1936 changed files with 241862 additions and 60153 deletions
+3 -3
View File
@@ -24,7 +24,7 @@
#ifndef LIVOX_IO_THREAD_H_
#define LIVOX_IO_THREAD_H_
#include <boost/smart_ptr.hpp>
#include <memory>
#include "io_loop.h"
#include "thread_base.h"
@@ -32,7 +32,7 @@ namespace livox {
class IOThread : public ThreadBase {
public:
IOThread() : loop_(NULL) {}
IOThread() : loop_(nullptr) {}
bool Init(bool enable_timer = true, bool enable_wake = true);
void Join();
void Uninit();
@@ -41,7 +41,7 @@ class IOThread : public ThreadBase {
void ThreadFunc();
private:
boost::scoped_ptr<IOLoop> loop_;
std::unique_ptr<IOLoop> loop_;
};
} // namespace livox
#endif // LIVOX_IO_THREAD_H_