Change-Id: Ie5df4a9471cb2dfac519ce37cb195206fe7f5761
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
+++ /dev/null
-.project
-.cproject
-.*.swp
-nbproject
-.vscode
\ No newline at end of file
#include <cbase_lock.h>
#include <sensor_log.h>
+using namespace sensor;
+
cbase_lock::cbase_lock()
{
m_history_mutex = PTHREAD_MUTEX_INITIALIZER;
#include <pthread.h>
+namespace sensor {
+
enum lock_type {
LOCK_TYPE_MUTEX,
LOCK_TYPE_READ,
Autolock(cbase_lock &m, lock_type type);
~Autolock();
};
+}
#endif /* _CBASE_LOCK_H_ */
#define SYSTEMD_SOCK_BUF_SIZE (128*1024)
using namespace ipc;
+using namespace sensor;
class send_event_handler : public event_handler
{
std::vector<uint64_t> m_pending_event_id;
std::atomic<bool> m_connected;
- cmutex m_cmutex;
+ sensor::cmutex m_cmutex;
};
}
#include <cmutex.h>
#include <sensor_log.h>
+using namespace sensor;
+
cmutex::cmutex()
{
pthread_mutexattr_t mutex_attr;
#define _CMUTEX_H_
#include "cbase_lock.h"
+namespace sensor {
class cmutex : public cbase_lock {
public:
pthread_mutex_t m_mutex;
};
+}
#endif /* _CMUTEX_H_ */
#define BAD_HANDLE 0
using namespace ipc;
+using namespace sensor;
static gboolean g_io_handler(GIOChannel *ch, GIOCondition condition, gpointer data)
{
std::map<uint64_t, handler_info *> m_handlers;
int m_term_fd;
- cmutex m_cmutex;
+ sensor::cmutex m_cmutex;
};
}