From 80fb150d66e458152087623d6b64437f09c5cdfd Mon Sep 17 00:00:00 2001 From: Ramin Yaghoubzadeh <ryaghoub@techfak.uni-bielefeld.de> Date: Thu, 15 Nov 2012 01:47:16 +0100 Subject: [PATCH] added verbose handlers for thread debugging (disabled by default) --- ipaacalib/cpp/src/ipaaca.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ipaacalib/cpp/src/ipaaca.cc b/ipaacalib/cpp/src/ipaaca.cc index d92e9f1..06ef34c 100644 --- a/ipaacalib/cpp/src/ipaaca.cc +++ b/ipaacalib/cpp/src/ipaaca.cc @@ -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 //} } } -- GitLab