summaryrefslogtreecommitdiff
path: root/libtiutils/MessageQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtiutils/MessageQueue.h')
-rw-r--r--libtiutils/MessageQueue.h33
1 files changed, 12 insertions, 21 deletions
diff --git a/libtiutils/MessageQueue.h b/libtiutils/MessageQueue.h
index 6d05201..68943b7 100644
--- a/libtiutils/MessageQueue.h
+++ b/libtiutils/MessageQueue.h
@@ -22,32 +22,19 @@
#include "DebugUtils.h"
#include <stdint.h>
-///Uncomment this macro to debug the message queue implementation
-//#define DEBUG_LOG
-
-///Camera HAL Logging Functions
-#ifndef DEBUG_LOG
-
-#define MSGQ_LOGDA(str)
-#define MSGQ_LOGDB(str, ...)
-
-#undef LOG_FUNCTION_NAME
-#undef LOG_FUNCTION_NAME_EXIT
-#define LOG_FUNCTION_NAME
-#define LOG_FUNCTION_NAME_EXIT
-
+#ifdef MSGQ_DEBUG
+# define MSGQ_LOGDA DBGUTILS_LOGDA
+# define MSGQ_LOGDB DBGUTILS_LOGDB
#else
-
-#define MSGQ_LOGDA DBGUTILS_LOGDA
-#define MSGQ_LOGDB DBGUTILS_LOGDB
-
+# define MSGQ_LOGDA(str)
+# define MSGQ_LOGDB(str, ...)
#endif
#define MSGQ_LOGEA DBGUTILS_LOGEA
#define MSGQ_LOGEB DBGUTILS_LOGEB
-
-namespace TIUTILS {
+namespace Ti {
+namespace Utils {
///Message type
struct Message
@@ -102,6 +89,10 @@ private:
bool mHasMsg;
};
-};
+} // namespace Utils
+} // namespace Ti
+
+
+
#endif