[DEV] update of external of elog and ethread

This commit is contained in:
Edouard DUPIN 2016-03-08 21:29:34 +01:00
parent 67d644353f
commit 000be3f640
3 changed files with 3 additions and 5 deletions

View File

@ -9,6 +9,6 @@
#include <esignal/debug.h>
int32_t esignal::getLogId() {
static int32_t g_val = etk::log::registerInstance("esignal");
static int32_t g_val = elog::registerInstance("esignal");
return g_val;
}

View File

@ -7,12 +7,12 @@
*/
#pragma once
#include <etk/log.h>
#include <elog/log.h>
namespace esignal {
int32_t getLogId();
};
#define ESIGNAL_BASE(info,data) TK_LOG_BASE(esignal::getLogId(),info,data)
#define ESIGNAL_BASE(info,data) ELOG_BASE(esignal::getLogId(),info,data)
#define ESIGNAL_PRINT(data) ESIGNAL_BASE(-1, data)
#define ESIGNAL_CRITICAL(data) ESIGNAL_BASE(1, data)

View File

@ -133,7 +133,6 @@ void esignal::Signal<T_ARGS...>::Executor::emit(const T_ARGS&... _values) {
m_observer(_values...);
} catch(...) {
m_removed = true;
std::cout << "LOL"<< std::endl;
}
}
@ -167,7 +166,6 @@ void esignal::Signal<T_ARGS...>::ExecutorShared::emit(const T_ARGS&... _values)
Executor::m_observer(_values...);
} catch(...) {
Executor::m_removed = true;
std::cout << "LOL"<< std::endl;
}
}