diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-12-10 05:25:38 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-12-10 05:25:38 +0000 |
commit | 5dd22df050264299b42160daeaa7701c81488ceb (patch) | |
tree | 5534dc1df28fa6e820261ae05fc88f6d60913e02 /tests/test_threadpool.c | |
parent | 03d617040a1749c8efb90cc7d125583256e8cbb9 (diff) |
Improve shutdown procedure.
This helps tests to pass more often than before.
They are far less likely to queue extra processes
into the control taskprocessor since they are prevented
once the threadpool begins to shut down.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_threadpool.c')
-rw-r--r-- | tests/test_threadpool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_threadpool.c b/tests/test_threadpool.c index af2c0ff44..373d0c028 100644 --- a/tests/test_threadpool.c +++ b/tests/test_threadpool.c @@ -69,6 +69,7 @@ static void test_state_changed(struct ast_threadpool *pool, SCOPED_MUTEX(lock, &tld->lock); tld->num_active = active_threads; tld->num_idle = idle_threads; + ast_log(LOG_NOTICE, "Thread state: %d active, %d idle\n", tld->num_active, tld->num_idle); ast_cond_signal(&tld->cond); } |