From 449880a803d11d816f93f36a17d6d30b969a30c3 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 25 Dec 2012 22:09:02 -0600 Subject: added debug print for work and handler count --- lib/block_actor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/block_actor.cpp') diff --git a/lib/block_actor.cpp b/lib/block_actor.cpp index dd3119d..fee3c88 100644 --- a/lib/block_actor.cpp +++ b/lib/block_actor.cpp @@ -78,9 +78,16 @@ BlockActor::BlockActor(void): thread_pool = get_active_thread_pool(); active_thread_pool.reset(); //actors hold this, now its safe to reset, weak_framework only this->register_handlers(); + this->handle_task_count = 0; + this->work_count = 0; } BlockActor::~BlockActor(void) { this->mark_done(); + #ifdef WORK_COUNTS + if (work_count == 0) std::cerr << "\n WORK FAIL!!!" << std::endl; + std::cerr << name << " handle_task_count " << handle_task_count << std::endl; + std::cerr << name << " work_count " << work_count << std::endl; + #endif } -- cgit