diff options
author | Josh Blum | 2012-12-25 22:09:02 -0600 |
---|---|---|
committer | Josh Blum | 2012-12-25 22:09:02 -0600 |
commit | 449880a803d11d816f93f36a17d6d30b969a30c3 (patch) | |
tree | 35eab43652f52778b7adca81ec63b4ffbe3fd95a /lib/block_actor.cpp | |
parent | 64ab3a982b7ae84be134b977bf6cb035f4be0e9e (diff) | |
download | sandhi-449880a803d11d816f93f36a17d6d30b969a30c3.tar.gz sandhi-449880a803d11d816f93f36a17d6d30b969a30c3.tar.bz2 sandhi-449880a803d11d816f93f36a17d6d30b969a30c3.zip |
added debug print for work and handler count
Diffstat (limited to 'lib/block_actor.cpp')
-rw-r--r-- | lib/block_actor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |