Skip to content
Snippets Groups Projects
Commit 80fb150d authored by Ramin Yaghoubzadeh's avatar Ramin Yaghoubzadeh
Browse files

added verbose handlers for thread debugging (disabled by default)

parent a27febf5
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ using namespace rsb::filter;
using namespace rsb::converter;
using namespace rsb::patterns;
#define VERBOSE_HANDLERS 0
// util and init//{{{
bool Initializer::_initialized = false;
......@@ -238,7 +240,13 @@ void IUEventHandler::call(Buffer* buffer, boost::shared_ptr<IUInterface> iu, boo
if (_condition_met(event_type, category)) {
//IUInterface::ptr iu = buffer->get(uid);
//if (iu) {
#if VERBOSE_HANDLERS == 1
std::cout << "[" << pthread_self() << " handler ENTER]" << std::endl;
#endif
_function(iu, event_type, local);
#if VERBOSE_HANDLERS == 1
std::cout << "[" << pthread_self() << " handler EXIT]" << std::endl;
#endif
//}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment