1 #ifndef __LOG_MANAGER_H__ 2 #define __LOG_MANAGER_H__ 7 #include <boost/thread/thread.hpp> 18 boost::mutex::scoped_lock lock(
m_mutex);
19 m_log.push_back(state);
28 boost::mutex::scoped_lock lock(
m_mutex);
35 boost::mutex::scoped_lock lock(
m_mutex);
39 boost::mutex::scoped_lock lock(
m_mutex);
43 boost::mutex::scoped_lock lock(
m_mutex);
47 boost::mutex::scoped_lock lock(
m_mutex);
51 boost::mutex::scoped_lock lock(
m_mutex);
56 boost::mutex::scoped_lock lock(
m_mutex);
65 boost::mutex::scoped_lock lock(
m_mutex);
69 boost::mutex::scoped_lock lock(
m_mutex);
77 boost::mutex::scoped_lock lock(
m_mutex);
85 boost::mutex::scoped_lock lock(
m_mutex);
86 if (
m_log.empty())
return false;
96 boost::mutex::scoped_lock lock(
m_mutex);
97 if (
m_log.empty())
return;
109 boost::mutex::scoped_lock lock(
m_mutex);
141 boost::mutex::scoped_lock lock(
m_mutex);
142 if (m_index < 0 || m_index >=
m_log.size()){
143 std::cerr <<
"invalid index:" <<
m_index <<
"," <<
m_log.size()
149 boost::mutex::scoped_lock lock(
m_mutex);
150 if (m_index < 0 || m_index >=
m_log.size()){
159 boost::mutex::scoped_lock lock(
m_mutex);
163 boost::mutex::scoped_lock lock(
m_mutex);
172 if (
m_log.empty())
return;
void enableRingBuffer(int len)
int gettimeofday(struct timeval *tv, struct timezone *tz)
bool record(double i_fps)